|
44 | 44 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
45 | 45 | - uses: Swatinem/rust-cache@v2 |
46 | 46 | with: |
47 | | - workspaces: | |
48 | | - . |
49 | | - tests/difftests/tests |
| 47 | + add-job-id-key: "false" |
| 48 | + shared-key: "base" |
50 | 49 | # Fetch dependencies in a separate step to clearly show how long each part |
51 | 50 | # of the testing takes |
52 | 51 | - name: cargo fetch --locked |
@@ -105,9 +104,8 @@ jobs: |
105 | 104 | run: cargo version |
106 | 105 | - uses: Swatinem/rust-cache@v2 |
107 | 106 | with: |
108 | | - workspaces: | |
109 | | - . |
110 | | - tests/difftests/tests |
| 107 | + add-job-id-key: "false" |
| 108 | + shared-key: "android" |
111 | 109 | - name: cargo fetch --locked |
112 | 110 | run: cargo fetch --locked --target ${{ matrix.target }} |
113 | 111 |
|
@@ -154,9 +152,9 @@ jobs: |
154 | 152 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
155 | 153 | - uses: Swatinem/rust-cache@v2 |
156 | 154 | with: |
157 | | - workspaces: | |
158 | | - . |
159 | | - tests/difftests/tests |
| 155 | + add-job-id-key: "false" |
| 156 | + shared-key: "base" |
| 157 | + save-if: "false" |
160 | 158 | - name: cargo fetch --locked |
161 | 159 | run: cargo fetch --locked --target $TARGET |
162 | 160 | - name: compiletest |
@@ -194,9 +192,14 @@ jobs: |
194 | 192 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
195 | 193 | - uses: Swatinem/rust-cache@v2 |
196 | 194 | with: |
197 | | - workspaces: | |
198 | | - . |
199 | | - tests/difftests/tests |
| 195 | + add-job-id-key: "false" |
| 196 | + shared-key: "base" |
| 197 | + save-if: "false" |
| 198 | + - uses: Swatinem/rust-cache@v2 |
| 199 | + with: |
| 200 | + add-job-id-key: "false" |
| 201 | + shared-key: "difftest" |
| 202 | + workspaces: "tests/difftests/tests" |
200 | 203 | - name: cargo fetch --locked |
201 | 204 | run: cargo fetch --locked --target $TARGET |
202 | 205 | - name: cargo fetch --locked difftests |
@@ -248,9 +251,9 @@ jobs: |
248 | 251 | run: cargo version |
249 | 252 | - uses: Swatinem/rust-cache@v2 |
250 | 253 | with: |
251 | | - workspaces: | |
252 | | - . |
253 | | - tests/difftests/tests |
| 254 | + add-job-id-key: "false" |
| 255 | + shared-key: "base" |
| 256 | + save-if: "false" |
254 | 257 | - name: Install rustup components |
255 | 258 | run: rustup component add rustfmt clippy |
256 | 259 | - name: cargo fetch --locked |
|
0 commit comments