Commit 6f1f5b3
committed
ci(ci): cache Rust artifacts in backend-tests and build jobs
Add Swatinem/rust-cache@v2.8.1 (SHA-pinned) after the Rust toolchain
install step in both macOS jobs that actually compile the Tauri crate:
backend-tests (cargo test via pnpm run health:repo:backend) and build
(pnpm tauri build). Skipped security-audit since cargo audit only
fetches the advisory DB — no compile benefit.
Configuration:
- workspaces: src-tauri — cache src-tauri/target not repo root
- shared-key: macos-rust — both jobs reuse registry/git caches
- cache-on-failure: true — keep cache when a single test regresses
Expected impact: ~2-3 min saved per CI run on each of the two macOS
jobs after first warm cache, by avoiding full src-tauri/target/
recompile from scratch.1 parent 25d6f83 commit 6f1f5b3
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
307 | 314 | | |
308 | 315 | | |
309 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
310 | 324 | | |
311 | 325 | | |
312 | 326 | | |
| |||
0 commit comments