Skip to content

Commit abe6aa3

Browse files
committed
fix: align cache keys between build and test jobs
1 parent 3bb6135 commit abe6aa3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
- uses: dtolnay/rust-toolchain@stable
2121
- uses: Swatinem/rust-cache@v2
2222
with:
23-
shared-key: "rust-cache-${{ inputs.os }}"
23+
prefix-key: "v1-rust"
24+
shared-key: "${{ inputs.os }}"
2425
cache-on-failure: true
2526
- name: Build workspace
2627
run: cargo build --workspace --all-targets --all-features ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
@@ -38,7 +39,8 @@ jobs:
3839
- uses: dtolnay/rust-toolchain@stable
3940
- uses: Swatinem/rust-cache@v2
4041
with:
41-
shared-key: "rust-cache-${{ inputs.os }}"
42+
prefix-key: "v1-rust"
43+
shared-key: "${{ inputs.os }}"
4244
save-if: false
4345
- uses: actions/setup-python@v5
4446
with:

0 commit comments

Comments
 (0)