Commit 72146b6
committed
fix(ci): improve macOS cache detection for Swatinem/rust-cache
The macOS runner uses Swatinem/rust-cache@v2 (non-Blacksmith), which requires
a different cache key strategy than the Blacksmith runners.
Changes:
- Use consistent prefix-key with version (v1-rust-test, v1-rust-build)
- Generate shared-key directly with matrix.name and Cargo file hashes
- Removed dependency on setup-cache job's output for non-Blacksmith runners
This ensures macOS builds properly detect and restore the Rust cache, as the
cache key now includes OS-specific information and is computed locally on the
macOS runner rather than relying on a key generated on Ubuntu.1 parent 334f682 commit 72146b6
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments