Skip to content

Commit d261077

Browse files
authored
Speed up ios simulator build check (#63)
* Cache ios dependencies (sdl2 and ffmpeg) to not download and build them each time. This should significantly speed up build check. * Rename github workflow job step.
1 parent 4463125 commit d261077

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/sourcehold.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ jobs:
6161
with:
6262
submodules: 'true'
6363

64+
- name: Cache dependencies
65+
if: ${{ matrix.target-platform == 'ios-simulator' }}
66+
uses: actions/cache@v2
67+
env:
68+
cache-name: cache-${{ matrix.target-platform }}-dependencies
69+
with:
70+
path: ${{ github.workspace }}/thirdparty/ios
71+
key: ${{ env.cache-name }}
72+
6473
- name: Install dependencies
6574
env:
6675
INSTALL_DEPENDENCIES: ${{ matrix.install-dependencies }}
@@ -85,7 +94,7 @@ jobs:
8594
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_CONFIGURE_OPTIONS
8695

8796
- name: Build
88-
working-directory: ${{github.workspace}}/build
97+
working-directory: ${{ github.workspace }}/build
8998
shell: bash
9099
env:
91100
CMAKE_BUILD_OPTIONS: ${{ matrix.cmake-build-options }}

0 commit comments

Comments
 (0)