Skip to content

Commit

Permalink
Fetch SDL2 if hash has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
DeBlister committed May 29, 2022
1 parent f5aa3d2 commit 06c9507
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06c9507

Please sign in to comment.