Bump the rust-cache prefix for the gnu target
Browse files at this commit280f563e049fa9e773a216c7ca9b889827bcb19fParent: 150069e- fix
- bump the rust-cache prefix for the gnu target
1 changed file +6 -0
.github/workflows/main.ymlmodified+6 -0
| @@ -44,6 +44,12 @@ jobs: | ||
| 44 | 44 | uses: Swatinem/rust-cache@v2 |
| 45 | 45 | with: |
| 46 | 46 | cache-all-crates: true |
| 47 | + # Bump when the target, the profile or any rustflags change: the | |
| 48 | + # key does not otherwise see those, and a run that restores the | |
| 49 | + # old key reports it up-to-date at save time — discarding the | |
| 50 | + # recompiled dependencies and silently recompiling them on every | |
| 51 | + # later run (observed when the musl→gnu move landed on this key). | |
| 52 | + prefix-key: v1-rust-gnu | |
| 47 | 53 | |
| 48 | 54 | # Compiling the CLI from source costs minutes and it changes only when |
| 49 | 55 | # the pinned version does, so it is cached on that version alone. |