From ad49dc4b8e2311ae954242c30f25d1ea6887bf2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martti=20Rannanj=C3=A4rvi?= Date: Sun, 30 Jun 2024 01:20:06 +0300 Subject: [PATCH] github: compilation.yml - Cache omf2097.zip --- .github/workflows/compilation.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 619f578f4..54036953a 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -94,9 +94,24 @@ jobs: id: slug run: echo "sha8=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT + - name: Restore omf2097.zip + id: cache-assets + uses: actions/cache/restore@v4 + with: + path: omf2097.zip + key: omf2097.zip + - name: Download omf 2097 assets + if: steps.cache-assets.outputs.cache-hit != 'true' run: wget -q "${{ env.OPENOMF_ASSETS_URL }}" + - name: Cache omf2097.zip + id: cache-assets + uses: actions/cache/save@v4 + with: + path: omf2097.zip + key: omf2097.zip + - name: Extract omf 2097 assets run: unzip -j omf2097.zip -d build-release/release/usr/share/games/openomf