Skip to content

Commit 3cceeb7

Browse files
committed
Fix cache key to prevent conflicts
1 parent f651168 commit 3cceeb7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ jobs:
1515
include:
1616
- runner: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
1717
os: ubuntu
18+
cachekey: ubuntu-x86
1819
- runner: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
1920
os: ubuntu
21+
cachekey: ubuntu-arm64
2022
- runner: self-hosted
2123
os: macos
24+
cachekey: macos-arm64
2225
- runner: macos-13
2326
os: macos
27+
cachekey: macos-x86
2428
runs-on: ${{ matrix.runner }}
2529
timeout-minutes: 120
2630
steps:
@@ -65,7 +69,7 @@ jobs:
6569
~/.cargo/registry/cache/
6670
~/.cargo/git/db/
6771
athena/target/
68-
key: ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.toml') }}
72+
key: ${{ matrix.cachekey }}-athenabuild-${{ hashFiles('athena/**/Cargo.toml') }}
6973

7074
- uses: actions/cache@v4
7175
name: Cache Rust toolchain
@@ -76,7 +80,7 @@ jobs:
7680
toolchain/rust/src/doc
7781
toolchain/rust/src/llvm-project
7882
toolchain/rust/src/tools
79-
key: ${{ matrix.os }}-rusttoolchain-${{ env.RUST_COMMIT }}
83+
key: ${{ matrix.cachekey }}-rusttoolchain-${{ env.RUST_COMMIT }}
8084

8185
- name: Build
8286
run:

0 commit comments

Comments
 (0)