diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76850a0..907306d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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