mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-08 14:31:49 +02:00
fixup! Replace download-tessdata with inventory.py sync
This commit is contained in:
parent
5ec1809809
commit
b54f347b80
2 changed files with 11 additions and 20 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -87,17 +87,14 @@ jobs:
|
|||
- run: pip install poetry
|
||||
- run: poetry install
|
||||
- name: Cache inventory
|
||||
id: cache-inventory
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: share/tessdata/
|
||||
key: v1-inventory-windows-${{ hashFiles('./inventory.lock') }}
|
||||
- name: Sync inventory
|
||||
run: |-
|
||||
if [ -f "share/tessdata" ]; then
|
||||
echo "Already cached, skipping"
|
||||
else
|
||||
poetry run python3 ./dev_scripts/inventory.py sync
|
||||
fi
|
||||
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||
run: poetry run python3 .\dev_scripts\inventory.py sync
|
||||
- name: Run CLI tests
|
||||
run: poetry run make test
|
||||
- name: Set up .NET CLI environment
|
||||
|
@ -139,17 +136,14 @@ jobs:
|
|||
- run: pip install poetry
|
||||
- run: poetry install
|
||||
- name: Cache inventory
|
||||
id: cache-inventory
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: share/tessdata/
|
||||
key: v1-inventory-darwin-${{ matrix.arch }}-${{ hashFiles('./inventory.lock') }}
|
||||
- name: Sync inventory
|
||||
run: |-
|
||||
if [ -f "share/tessdata" ]; then
|
||||
echo "Already cached, skipping"
|
||||
else
|
||||
poetry run python3 ./dev_scripts/inventory.py sync
|
||||
fi
|
||||
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||
run: poetry run python3 ./dev_scripts/inventory.py sync
|
||||
- name: Run CLI tests
|
||||
run: poetry run make test
|
||||
- name: Build macOS app
|
||||
|
@ -401,18 +395,15 @@ jobs:
|
|||
poetry install
|
||||
|
||||
- name: Cache inventory
|
||||
id: cache-inventory
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: share/tessdata/
|
||||
key: v1-inventory-linux-${{ hashFiles('./inventory.lock') }}
|
||||
|
||||
- name: Sync inventory
|
||||
run: |-
|
||||
if [ -f "share/tessdata" ]; then
|
||||
echo "Already cached, skipping"
|
||||
else
|
||||
poetry run python3 ./dev_scripts/inventory.py sync
|
||||
fi
|
||||
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||
run: poetry run python3 ./dev_scripts/inventory.py sync
|
||||
|
||||
- name: Login to GHCR
|
||||
run: |
|
||||
|
|
4
BUILD.md
4
BUILD.md
|
@ -137,10 +137,10 @@ Build the latest container:
|
|||
python3 ./install/common/build-image.py
|
||||
```
|
||||
|
||||
Download the OCR language data and other useful assets:
|
||||
Download the necessary assets:
|
||||
|
||||
```sh
|
||||
python3 ./dev_scripts/inventory sync
|
||||
poetry run python3 ./dev_scripts/inventory.py sync
|
||||
```
|
||||
|
||||
Run from source tree:
|
||||
|
|
Loading…
Reference in a new issue