Skip to content

Commit

Permalink
bugfix for #608
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mpr1c3 authored and dl1com committed Jan 2, 2024
1 parent be93849 commit 8bdb8a6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-multi-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ jobs:
with:
path: src/main/python/ayab/ayab_logo_rc.py
key: logo-${{ hashFiles('src/main/python/ayab/ayab_logo_rc.qrc') }}
- name: Use cached graphics
id: e-cache
uses: actions/cache@v3
with:
path: src/main/python/ayab/engine/*_rc.py
key: e-${{ hashFiles('src/main/python/ayab/engine/*_rc.qrc') }}
- name: Use cached translation files
id: qm-cache
uses: actions/cache@v3
Expand All @@ -122,6 +128,7 @@ jobs:
if: ${{ (steps.gui1-cache.outputs.cache-hit != 'true') ||
(steps.gui2-cache.outputs.cache-hit != 'true') ||
(steps.logo-cache.outputs.cache-hit != 'true') ||
(steps.e-cache.outputs.cache-hit != 'true') ||
(steps.qm-cache.outputs.cache-hit != 'true') }}
run: |
sudo apt install -y qt5-default qttools5-dev-tools
Expand All @@ -144,6 +151,12 @@ jobs:
with:
path: src/main/python/ayab/ayab_logo_rc.py
key: logo-${{ hashFiles('src/main/python/ayab/ayab_logo_rc.qrc') }}
- name: Cache graphics
if: ${{ (steps.e-cache.outputs.cache-hit != 'true') }}
uses: actions/cache/save@v3
with:
path: src/main/python/ayab/engine/*_rc.py
key: e-${{ hashFiles('src/main/python/ayab/engine/*_rc.qrc') }}
- name: Cache translation files
if: ${{ (steps.qm-cache.outputs.cache-hit != 'true') }}
uses: actions/cache/save@v3
Expand Down Expand Up @@ -246,6 +259,14 @@ jobs:
key: logo-${{ hashFiles('src/main/python/ayab/ayab_logo_rc.qrc') }}
enableCrossOsArchive: true
fail-on-cache-miss: true
- name: Restore cached graphics
id: e-cache
uses: actions/cache@v3
with:
path: src/main/python/ayab/engine/*_rc.py
key: e-${{ hashFiles('src/main/python/ayab/engine/*_rc.qrc') }}
enableCrossOsArchive: true
fail-on-cache-miss: true
- name: Restore cached translation files
id: qm-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -368,6 +389,13 @@ jobs:
path: src/main/python/ayab/ayab_logo_rc.py
key: logo-${{ hashFiles('src/main/python/ayab/ayab_logo_rc.qrc') }}
fail-on-cache-miss: true
- name: Restore cached graphics
id: e-cache
uses: actions/cache@v3
with:
path: src/main/python/ayab/engine/*_rc.py
key: e-${{ hashFiles('src/main/python/ayab/engine/*_rc.qrc') }}
fail-on-cache-miss: true
- name: Restore cached translation files
id: qm-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -494,6 +522,13 @@ jobs:
path: src/main/python/ayab/ayab_logo_rc.py
key: logo-${{ hashFiles('src/main/python/ayab/ayab_logo_rc.qrc') }}
fail-on-cache-miss: true
- name: Restore cached graphics
id: e-cache
uses: actions/cache@v3
with:
path: src/main/python/ayab/engine/*_rc.py
key: e-${{ hashFiles('src/main/python/ayab/engine/*_rc.qrc') }}
fail-on-cache-miss: true
- name: Restore cached translation files
id: qm-cache
uses: actions/cache@v3
Expand All @@ -515,12 +550,16 @@ jobs:
mv src/main/python/ayab/*_gui.py squashfs-root/src/main/python/ayab/
mv src/main/python/ayab/engine/*_gui.py squashfs-root/src/main/python/ayab/engine/
mv src/main/python/ayab/ayab_logo_rc.py squashfs-root/src/main/python/ayab/
mv src/main/python/ayab/engine/lowercase_e_rc.py squashfs-root/src/main/python/ayab/engine
mv src/main/python/ayab/engine/lowercase_e_reversed_rc.py squashfs-root/src/main/python/ayab/engine
mv src/main/resources/base/ayab/translations/*.qm squashfs-root/src/main/resources/base/ayab/translations/
mv src/build/settings/base.json squashfs-root/src/build/settings/base.json
- name: Remove unneeded files
run: |
rm squashfs-root/src/main/python/ayab/*_gui.ui
rm squashfs-root/src/main/python/ayab/ayab_logo_rc.qrc
rm squashfs-root/src/main/python/ayab/engine/lowercase_e_rc.qrc
rm squashfs-root/src/main/python/ayab/engine/lowercase_e_reversed_rc.qrc
- name: Check cached files
run: |
pwd
Expand Down

0 comments on commit 8bdb8a6

Please sign in to comment.