Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
single CI script with tesseract 4 and 5
Browse files Browse the repository at this point in the history
pachadotdev committed Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c18cbf9 commit f846d67
Showing 2 changed files with 9 additions and 50 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ jobs:
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'release', tesseract_version: '4'}
- {os: ubuntu-20.04, r: 'release', tesseract_version: '5'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -40,6 +41,13 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install Tesseract 5
if: matrix.config.os == 'ubuntu-20.04' && matrix.config.tesseract_version == '5'
run: |
sudo add-apt-repository -y ppa:alex-p/tesseract-ocr5
sudo apt-get update
sudo apt-get install -y libtesseract-dev tesseract-ocr tesseract-ocr-eng
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
49 changes: 0 additions & 49 deletions .github/workflows/tesseract-5-ubuntu-20.yaml

This file was deleted.

0 comments on commit f846d67

Please sign in to comment.