fixup! Replace download-tessdata with inventory.py sync

This commit is contained in:
Alex Pyrgiotis 2025-05-07 15:54:14 +03:00
parent 5ec1809809
commit b54f347b80
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
2 changed files with 11 additions and 20 deletions

View file

@ -87,17 +87,14 @@ jobs:
- run: pip install poetry - run: pip install poetry
- run: poetry install - run: poetry install
- name: Cache inventory - name: Cache inventory
id: cache-inventory
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: share/tessdata/ path: share/tessdata/
key: v1-inventory-windows-${{ hashFiles('./inventory.lock') }} key: v1-inventory-windows-${{ hashFiles('./inventory.lock') }}
- name: Sync inventory - name: Sync inventory
run: |- if: steps.cache-inventory.outputs.cache-hit != 'true'
if [ -f "share/tessdata" ]; then run: poetry run python3 .\dev_scripts\inventory.py sync
echo "Already cached, skipping"
else
poetry run python3 ./dev_scripts/inventory.py sync
fi
- name: Run CLI tests - name: Run CLI tests
run: poetry run make test run: poetry run make test
- name: Set up .NET CLI environment - name: Set up .NET CLI environment
@ -139,17 +136,14 @@ jobs:
- run: pip install poetry - run: pip install poetry
- run: poetry install - run: poetry install
- name: Cache inventory - name: Cache inventory
id: cache-inventory
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: share/tessdata/ path: share/tessdata/
key: v1-inventory-darwin-${{ matrix.arch }}-${{ hashFiles('./inventory.lock') }} key: v1-inventory-darwin-${{ matrix.arch }}-${{ hashFiles('./inventory.lock') }}
- name: Sync inventory - name: Sync inventory
run: |- if: steps.cache-inventory.outputs.cache-hit != 'true'
if [ -f "share/tessdata" ]; then run: poetry run python3 ./dev_scripts/inventory.py sync
echo "Already cached, skipping"
else
poetry run python3 ./dev_scripts/inventory.py sync
fi
- name: Run CLI tests - name: Run CLI tests
run: poetry run make test run: poetry run make test
- name: Build macOS app - name: Build macOS app
@ -401,18 +395,15 @@ jobs:
poetry install poetry install
- name: Cache inventory - name: Cache inventory
id: cache-inventory
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: share/tessdata/ path: share/tessdata/
key: v1-inventory-linux-${{ hashFiles('./inventory.lock') }} key: v1-inventory-linux-${{ hashFiles('./inventory.lock') }}
- name: Sync inventory - name: Sync inventory
run: |- if: steps.cache-inventory.outputs.cache-hit != 'true'
if [ -f "share/tessdata" ]; then run: poetry run python3 ./dev_scripts/inventory.py sync
echo "Already cached, skipping"
else
poetry run python3 ./dev_scripts/inventory.py sync
fi
- name: Login to GHCR - name: Login to GHCR
run: | run: |

View file

@ -137,10 +137,10 @@ Build the latest container:
python3 ./install/common/build-image.py python3 ./install/common/build-image.py
``` ```
Download the OCR language data and other useful assets: Download the necessary assets:
```sh ```sh
python3 ./dev_scripts/inventory sync poetry run python3 ./dev_scripts/inventory.py sync
``` ```
Run from source tree: Run from source tree: