mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
FIXUP: Minor caching improvement
This commit is contained in:
parent
e0878e489a
commit
f6f9ff16e1
1 changed files with 7 additions and 3 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -72,7 +72,7 @@ jobs:
|
||||||
name: Download and cache Tesseract data
|
name: Download and cache Tesseract data
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Cache Tessdata
|
- name: Cache Tessdata
|
||||||
id: cache-tessdata
|
id: cache-tessdata
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -84,8 +84,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Download Tessdata
|
- name: Download Tessdata
|
||||||
if: steps.cache-tessdata.outputs.cache-hit != 'true'
|
run: |-
|
||||||
run: python3 ./install/common/download-tessdata.py
|
if [ -f "share/tessdata" ]; then
|
||||||
|
echo "Already cached, skipping"
|
||||||
|
else
|
||||||
|
python3 ./install/common/download-tessdata.py
|
||||||
|
fi
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
Loading…
Reference in a new issue