Skip to content

Commit

Permalink
Add cache id
Browse files Browse the repository at this point in the history
  • Loading branch information
misakazip authored Nov 25, 2024
1 parent 2d47141 commit 518a26a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ jobs:
- name: Restore clang cache
uses: actions/cache@v4
with:
id: cache-clang
path: linux-x86
key: ${{ runner.os }}-clang-cache
restore-keys: |
${{ runner.os }}-clang-cache
- name: Clone clang (prebuilt)
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-clang.outputs.cache-hit != 'true'
run: |
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86 -b android11-mainline-release
# Restore gcc cache
- name: Restore gcc cache
uses: actions/cache@v4
with:
id: cache-gcc
path: |
aarch64-linux-android-4.9
arm-linux-androideabi-4.9
Expand All @@ -53,7 +55,7 @@ jobs:
${{ runner.os }}-gcc-cache
- name: Clone gcc (prebuilt)
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache-gcc.outputs.cache-hit != 'true'
run: |
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b android11-mainline-release
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 -b android11-mainline-release
Expand Down

0 comments on commit 518a26a

Please sign in to comment.