Skip to content

Commit 2092cf1

Browse files
committed
ci: bump cache version to v1 for fresh start
1 parent 93d75a9 commit 2092cf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ jobs:
2424
- uses: dtolnay/rust-toolchain@stable
2525
- uses: Swatinem/rust-cache@v2
2626
with:
27+
prefix-key: "v1-rust"
2728
shared-key: "${{ inputs.os }}"
2829
cache-on-failure: true
29-
- name: Build workspace (including test binaries)
30+
- name: Build workspace
31+
# Use cargo test --no-run here to build all test binaries.
3032
run: cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
3133

3234
test:
@@ -46,6 +48,7 @@ jobs:
4648
- uses: dtolnay/rust-toolchain@stable
4749
- uses: Swatinem/rust-cache@v2
4850
with:
51+
prefix-key: "v1-rust"
4952
shared-key: "${{ inputs.os }}"
5053
save-if: false
5154
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)