Skip to content

Commit 237b1db

Browse files
authored
chore(workflows): fix Node 20 warning and optimize rust-cache (#64)
* chore(workflows): upgrade rust-cache to node24 * chore(workflows): 优化 rust-cache 配置以支持目标特定缓存
1 parent f4944f6 commit 237b1db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ jobs:
4343
version: 10.1.0
4444
arch_list: x86_64,aarch64,riscv64,loongarch64
4545

46-
- uses: Swatinem/rust-cache@v2
46+
- uses: Swatinem/rust-cache@v2.9.1
4747
with:
4848
shared-key: test
49-
cache-targets: false
49+
key: ${{ matrix.target }}
50+
cache-targets: true
51+
save-if: ${{ github.ref == 'refs/heads/main' }}
5052

5153
- uses: cargo-bins/cargo-binstall@main
5254

0 commit comments

Comments
 (0)