|
43 | 43 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
44 | 44 | - uses: Swatinem/rust-cache@v2 |
45 | 45 | with: |
46 | | - workspaces: | |
47 | | - . |
48 | | - tests/difftests/tests |
| 46 | + add-job-id-key: "false" |
| 47 | + shared-key: "base" |
49 | 48 | # Fetch dependencies in a separate step to clearly show how long each part |
50 | 49 | # of the testing takes |
51 | 50 | - name: cargo fetch --locked |
@@ -101,9 +100,8 @@ jobs: |
101 | 100 | run: cargo version |
102 | 101 | - uses: Swatinem/rust-cache@v2 |
103 | 102 | with: |
104 | | - workspaces: | |
105 | | - . |
106 | | - tests/difftests/tests |
| 103 | + add-job-id-key: "false" |
| 104 | + shared-key: "android" |
107 | 105 | - name: cargo fetch --locked |
108 | 106 | run: cargo fetch --locked --target ${{ matrix.target }} |
109 | 107 |
|
@@ -150,9 +148,9 @@ jobs: |
150 | 148 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
151 | 149 | - uses: Swatinem/rust-cache@v2 |
152 | 150 | with: |
153 | | - workspaces: | |
154 | | - . |
155 | | - tests/difftests/tests |
| 151 | + add-job-id-key: "false" |
| 152 | + shared-key: "base" |
| 153 | + save-if: "false" |
156 | 154 | - name: cargo fetch --locked |
157 | 155 | run: cargo fetch --locked --target $TARGET |
158 | 156 | - name: compiletest |
@@ -190,9 +188,14 @@ jobs: |
190 | 188 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
191 | 189 | - uses: Swatinem/rust-cache@v2 |
192 | 190 | with: |
193 | | - workspaces: | |
194 | | - . |
195 | | - tests/difftests/tests |
| 191 | + add-job-id-key: "false" |
| 192 | + shared-key: "base" |
| 193 | + save-if: "false" |
| 194 | + - uses: Swatinem/rust-cache@v2 |
| 195 | + with: |
| 196 | + add-job-id-key: "false" |
| 197 | + shared-key: "difftest" |
| 198 | + workspaces: "tests/difftests/tests" |
196 | 199 | - name: cargo fetch --locked |
197 | 200 | run: cargo fetch --locked --target $TARGET |
198 | 201 | - name: cargo fetch --locked difftests |
@@ -240,11 +243,6 @@ jobs: |
240 | 243 | # cargo version is a random command that forces the installation of rust-toolchain |
241 | 244 | - name: install rust-toolchain |
242 | 245 | run: cargo version |
243 | | - - uses: Swatinem/rust-cache@v2 |
244 | | - with: |
245 | | - workspaces: | |
246 | | - . |
247 | | - tests/difftests/tests |
248 | 246 | - name: Install rustup components |
249 | 247 | run: rustup component add rustfmt clippy |
250 | 248 | - name: cargo fetch --locked |
|
0 commit comments