From 9515d4983eb6510eb7308f75dbd6dd76676a9346 Mon Sep 17 00:00:00 2001 From: t0mpr1c3 Date: Mon, 1 Jan 2024 19:20:06 -0500 Subject: [PATCH] bugfix for #608 --- .github/workflows/build-multi-os.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/build-multi-os.yml b/.github/workflows/build-multi-os.yml index 039ac3c0..f31a0c4f 100644 --- a/.github/workflows/build-multi-os.yml +++ b/.github/workflows/build-multi-os.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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