Skip to content

Commit 52e803c

Browse files
unhappychoiceclaude
andcommitted
fix: invalidate old cache by changing prefix-key
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c67e5a1 commit 52e803c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
with:
2222
components: rustfmt
2323
- uses: Swatinem/rust-cache@v2
24+
with:
25+
prefix-key: v1-rust
2426
- run: cargo fmt --all -- --check
2527

2628
clippy:
@@ -32,6 +34,8 @@ jobs:
3234
with:
3335
components: clippy
3436
- uses: Swatinem/rust-cache@v2
37+
with:
38+
prefix-key: v1-rust
3539
- run: cargo clippy --all-targets --all-features -- -D warnings
3640

3741
test:
@@ -41,6 +45,8 @@ jobs:
4145
- uses: actions/checkout@v4
4246
- uses: dtolnay/rust-toolchain@stable
4347
- uses: Swatinem/rust-cache@v2
48+
with:
49+
prefix-key: v1-rust
4450
- run: cargo test
4551

4652
build:
@@ -53,6 +59,8 @@ jobs:
5359
- uses: actions/checkout@v4
5460
- uses: dtolnay/rust-toolchain@stable
5561
- uses: Swatinem/rust-cache@v2
62+
with:
63+
prefix-key: v1-rust
5664
- run: cargo build --release
5765

5866
nix-build:

0 commit comments

Comments
 (0)