Skip to content

Commit

Permalink
wip caching
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy authored Aug 21, 2023
1 parent 9fad39f commit c5f45a2
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,23 @@ jobs:
- name: Set script permissions
run: chmod +x ./.ci_scripts/*.sh

- name: Use cached dependencies
id: use-dependencies
uses: actions/cache/restore@v3
with:
path: ./build.android/app/jni/
key: ${{ runner.os }}-${{ matrix.arch }}-dependencies-${{ hashFiles('.github/workflows/android.yml') }}

- name: Prepare SDL Android project
if: steps.use-dependencies.outputs.cache-hit != 'true'
run: |
./.ci_scripts/clone_dependency.sh libsdl-org/SDL release-2.26.5
mv ./SDL/android-project/ ./build.android
mv ./SDL/ ./build.android/app/jni/SDL
- name: Clone dependencies
working-directory: build.android/app/jni
if: steps.use-dependencies.outputs.cache-hit != 'true'
run: |
../../../.ci_scripts/clone_dependency.sh libsdl-org/SDL_image release-2.6.3
../../../.ci_scripts/clone_dependency.sh libsdl-org/SDL_ttf release-2.20.2
Expand All @@ -65,10 +74,18 @@ jobs:
../../../.ci_scripts/clone_dependency.sh SuperTux/sexp-cpp master
../../../.ci_scripts/clone_dependency.sh albertodemichelis/squirrel v3.2
../../../.ci_scripts/clone_dependency.sh SuperTux/tinygettext master
ln -s ../../../ supertux
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache/save@v3
with:
path: ./build.android/app/jni/
key: ${{ runner.os }}-${{ matrix.arch }}-dependencies-${{ hashFiles('.github/workflows/android.yml') }}

- name: Copy SuperTux Android project files
run: cp -r -f ./mk/android/* ./build.android/
run: |
ln -s ../../../ supertux
cp -r -f ./mk/android/* ./build.android/
- name: Set up JDK 20
uses: actions/setup-java@v3
Expand Down

0 comments on commit c5f45a2

Please sign in to comment.