From 06c95073daeba319203fca0a8075eda38c620b30 Mon Sep 17 00:00:00 2001 From: DeBlister <80174383+DeBlister@users.noreply.github.com> Date: Sat, 28 May 2022 21:48:18 -0400 Subject: [PATCH] Fetch SDL2 if hash has changed --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12ed0b404962..5c75b88bd354 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -313,10 +313,13 @@ jobs: run: brew install libmad libpng jpeg-turbo - name: Restore cached SDL2 framework if: (!(steps.cache-artifact0.outputs.cache-hit && steps.cache-artifact1.outputs.cache-hit && steps.cache-artifact2.outputs.cache-hit)) + id: cache-sdl2_framework uses: actions/cache@v2 with: path: ${{ env.SDL2_FRAMEWORK }} key: ${{ matrix.os }}-sdl2-${{ hashFiles('.github/workflows/ci.yml', 'EndlessSky.xcodeproj/**', 'utils/set_dylibs_rpath.sh', 'utils/fetch_sdl2_framework.sh') }} + if: cache-sdl2_framework != 'true' + run: 'utils/fetch_sdl2_framework.sh' - name: Compile Engine if: steps.cache-artifact0.outputs.cache-hit != 'true' run: xcodebuild -target "ES_Engine" -configuration "Release" -jobs $(sysctl -n hw.logicalcpu) -quiet