Skip to content

Commit

Permalink
Cache the Android NDK in the cmake-android-* workflows.
Browse files Browse the repository at this point in the history
Currently, `ccache` is not getting any hits, likely because the `mtime` of the compiler binaries changes every time `sttld/setup-ndk` is called (see discussion [here](hendrikmuhs/ccache-action#94)).
With this change, the NDK itself is cached, which hopefully maintains the `mtime` across builds.

PiperOrigin-RevId: 662464572
  • Loading branch information
gonnet authored and xnnpack-bot committed Aug 13, 2024
1 parent 6c7f069 commit 5e0a61f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ jobs:
key: ${{ github.job }}-${{ matrix.arch }}
max-size: "1G"
save: ${{ inputs.update-caches }}
- name: Print binary mtimes
run: |
ls -l /opt/hostedtoolcache/ndk/r23b/x64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang*
file /opt/hostedtoolcache/ndk/r23b/x64/toolchains/llvm/prebuilt/linux-x86_64/bin/clang*
- name: Configure and build
run: scripts/build-android-${{ matrix.arch }}.sh
working-directory: ${{ github.workspace }}
Expand Down

0 comments on commit 5e0a61f

Please sign in to comment.