Skip to content

Commit 1048826

Browse files
committed
Cache Android toolchain before test builds
1 parent 825e10a commit 1048826

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/naive-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,17 @@ jobs:
361361
run: |
362362
go run ./cmd/build-naive --target=android/${{ matrix.arch }} package --local
363363
go run ./cmd/build-naive --target=android/${{ matrix.arch }} package
364+
- name: Cache toolchain
365+
uses: actions/cache@v4
366+
with:
367+
path: |
368+
naiveproxy/src/third_party/llvm-build
369+
naiveproxy/src/gn/out
370+
naiveproxy/src/chrome/build/pgo_profiles
371+
key: toolchain-android-${{ matrix.arch }}-${{ steps.chromium.outputs.version }}-${{ steps.clang.outputs.version }}-${{ env.CACHE_EPOCH }}
372+
restore-keys: toolchain-android-${{ matrix.arch }}-${{ steps.chromium.outputs.version }}-${{ steps.clang.outputs.version }}-${{ env.CACHE_EPOCH }}-
373+
- name: Download toolchain
374+
run: go run ./cmd/build-naive --target=android/${{ matrix.arch }} download-toolchain
364375
- name: Setup Android NDK
365376
uses: nttld/setup-ndk@v1
366377
id: setup-ndk

0 commit comments

Comments
 (0)