|
81 | 81 | with: |
82 | 82 | path: | |
83 | 83 | ~/.rustup |
84 | | - key: ${{ runner.os }}-${{ matrix.platform.target }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
| 84 | + key: ${{ runner.os }}-${{ runner.arch }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
85 | 85 | restore-keys: | |
86 | | - ${{ runner.os }}-${{ matrix.platform.target }}-rustup- |
| 86 | + ${{ runner.os }}-${{ runner.arch }}-rustup- |
87 | 87 |
|
88 | 88 | - name: Cache Homebrew packages (macOS) |
89 | 89 | if: ${{ runner.os == 'macOS' }} |
@@ -283,20 +283,20 @@ jobs: |
283 | 283 | with: |
284 | 284 | path: | |
285 | 285 | ~/.rustup |
286 | | - key: ${{ runner.os }}-${{ matrix.platform.target }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
| 286 | + key: ${{ runner.os }}-${{ runner.arch }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
287 | 287 | restore-keys: | |
288 | | - ${{ runner.os }}-${{ matrix.platform.target }}-rustup- |
| 288 | + ${{ runner.os }}-${{ runner.arch }}-rustup- |
289 | 289 |
|
290 | 290 | - name: Cache Cargo registry |
291 | 291 | uses: actions/cache@v4 |
292 | 292 | with: |
293 | 293 | path: | |
294 | 294 | ~/.cargo/git |
295 | 295 | ~/.cargo/registry |
296 | | - key: ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.lock') }} |
| 296 | + key: ${{ runner.os }}-${{ runner.arch }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
297 | 297 | restore-keys: | |
298 | | - ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}- |
299 | | - ${{ runner.os }}-cargo-wheels- |
| 298 | + ${{ runner.os }}-${{ runner.arch }}-cargo-registry- |
| 299 | + ${{ runner.os }}-cargo-registry- |
300 | 300 |
|
301 | 301 | - name: Build wheels |
302 | 302 | uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 |
@@ -334,20 +334,20 @@ jobs: |
334 | 334 | with: |
335 | 335 | path: | |
336 | 336 | ~/.rustup |
337 | | - key: ${{ runner.os }}-${{ matrix.platform.target }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
| 337 | + key: ${{ runner.os }}-${{ runner.arch }}-rustup-${{ hashFiles('rust-toolchain.toml') }} |
338 | 338 | restore-keys: | |
339 | | - ${{ runner.os }}-${{ matrix.platform.target }}-rustup- |
| 339 | + ${{ runner.os }}-${{ runner.arch }}-rustup- |
340 | 340 |
|
341 | 341 | - name: Cache Cargo registry |
342 | 342 | uses: actions/cache@v4 |
343 | 343 | with: |
344 | 344 | path: | |
345 | 345 | ~/.cargo/git |
346 | 346 | ~/.cargo/registry |
347 | | - key: ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.lock') }} |
| 347 | + key: ${{ runner.os }}-${{ runner.arch }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
348 | 348 | restore-keys: | |
349 | | - ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}- |
350 | | - ${{ runner.os }}-cargo-wheels- |
| 349 | + ${{ runner.os }}-${{ runner.arch }}-cargo-registry- |
| 350 | + ${{ runner.os }}-cargo-registry- |
351 | 351 |
|
352 | 352 | - name: Build wheels |
353 | 353 | uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 |
|
0 commit comments