|
15 | 15 | - "**.txt" |
16 | 16 | - "docs/**" |
17 | 17 |
|
| 18 | +env: |
| 19 | + # Set the new value when the cache grows too much and we hit the runner's disk space limit |
| 20 | + # via https://github.com/rust-lang/docs.rs/pull/2433 |
| 21 | + RUST_CACHE_KEY: rust-cache-20250522 |
| 22 | + |
18 | 23 | jobs: |
19 | 24 | lint: |
20 | 25 | name: lint |
|
30 | 35 | with: |
31 | 36 | # Use a common cache for the basic compilation/formatter/clippy checks |
32 | 37 | shared-key: ${{ github.workflow }}-shared |
| 38 | + prefix-key: ${{ env.RUST_CACHE_KEY }} |
33 | 39 | save-if: ${{ github.ref == 'refs/heads/next' }} |
34 | 40 | - name: Install cargo-make |
35 | 41 | run: | |
|
58 | 64 | with: |
59 | 65 | # Use a common cache for the basic compilation/formatter/clippy checks |
60 | 66 | shared-key: ${{ github.workflow }}-shared |
| 67 | + prefix-key: ${{ env.RUST_CACHE_KEY }} |
61 | 68 | # But do not save this cache, just use it |
62 | 69 | save-if: false |
63 | 70 | - name: Install cargo-make |
|
84 | 91 | # NOTE: We use a different cache for the tests, so they can be run in parallel, but we |
85 | 92 | # also share the cache for the tests for efficiency |
86 | 93 | shared-key: ${{ github.workflow }}-shared-tests |
| 94 | + prefix-key: ${{ env.RUST_CACHE_KEY }} |
87 | 95 | save-if: ${{ github.ref == 'refs/heads/next' }} |
88 | 96 | - name: Install cargo-make |
89 | 97 | run: | |
@@ -126,6 +134,7 @@ jobs: |
126 | 134 | uses: Swatinem/rust-cache@v2 |
127 | 135 | with: |
128 | 136 | shared-key: ${{ github.workflow }}-shared-tests |
| 137 | + prefix-key: ${{ env.RUST_CACHE_KEY }} |
129 | 138 | # Do not persist the cache, leave that to the unit tests, we just use the cache here |
130 | 139 | save-if: false |
131 | 140 | - name: Install cargo-make |
@@ -153,6 +162,7 @@ jobs: |
153 | 162 | uses: Swatinem/rust-cache@v2 |
154 | 163 | with: |
155 | 164 | shared-key: ${{ github.workflow }}-shared-tests |
| 165 | + prefix-key: ${{ env.RUST_CACHE_KEY }} |
156 | 166 | # Do not persist the cache, leave that to the unit tests, we just use the cache here |
157 | 167 | save-if: false |
158 | 168 | - name: Install cargo-make |
|
0 commit comments