Skip to content

Commit

Permalink
android ci cache add conditionals
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Gonzalez <[email protected]>
  • Loading branch information
cristianglezm committed Feb 24, 2024
1 parent 5c0e12a commit 3d910bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: cache linux
if: runner.os == 'Linux' && matrix.platform.name != 'Android'
id: cache-linux
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -53,11 +54,11 @@ jobs:
${{ matrix.platform.prefix }} cmake --build $GITHUB_WORKSPACE/build --config ${{ matrix.type.name == 'Debug' && 'Debug' || 'Release' }} --target install
- name: cache android
if: matrix.platform.name == 'Android'
id: cache-android
uses: actions/cache@v4
with:
path: |
/usr/local/lib/android/sdk/ndk/26.2.11394342
path: ${ANDROID_SDK_ROOT}/ndk/26.2.11394342
key: ${{ matrix.platform.name }}-${{ matrix.type.name }}-${{ matrix.config.name }}

- name: install android dependencies
Expand Down

0 comments on commit 3d910bc

Please sign in to comment.