Skip to content

Commit

Permalink
Cache android deps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JVital2013 authored Jan 31, 2024
1 parent 881d40a commit 62bf7df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/all_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,15 @@ jobs:
- name: Install Android NDK
run: $GITHUB_WORKSPACE/android-sdk-linux/cmdline-tools/bin/sdkmanager --sdk_root=$GITHUB_WORKSPACE/android-sdk-linux --install "ndk;25.2.9519653" --channel=3

- name: Restore cached dependencies
uses: actions/cache@v4
id: android-deps
with:
path: android/deps
key: android-deps

- name: Build dependencies
if: steps.android-deps.outputs.cache-hit != 'true'
shell: bash
run: git submodule update --init && cd $GITHUB_WORKSPACE/android/deps && export ANDROID_HOME=$GITHUB_WORKSPACE/android-sdk-linux && sh build.sh

Expand Down

0 comments on commit 62bf7df

Please sign in to comment.