Commit 9170a1c
committed
[PM-29567] Cache cargo-run-bin tools in the lint workflow
cargo-run-bin builds its tools into .bin, which was not cached, so every lint
check rebuilt its tools from source each run.
Cache .bin with a dedicated actions/cache step rather than via rust-cache's
cache-directories. rust-cache keys every matrix check under one shared
job-based key (so only the first check to save wins, and the others rebuild
their tools anyway) and folds in the Cargo.lock hash (which rotates every day
or two). The tools depend only on their pinned versions and the toolchain, so
key on Cargo.toml + rust-toolchain.toml per check instead, with restore-keys
for graceful fallback.1 parent bfe97b2 commit 9170a1c
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 | | |
101 | 115 | | |
102 | 116 | | |
| |||
0 commit comments