Update `Swatinem/rust-cache` to v2

This commit is contained in:
messense 2022-11-02 09:42:55 +08:00
parent e6f84be167
commit 7bc5a96277
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 5 additions and 5 deletions

View File

@ -157,7 +157,7 @@ jobs:
# needed to correctly format errors, see #1865
components: rust-src
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: cargo-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}
continue-on-error: true
@ -316,7 +316,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: cargo-valgrind
continue-on-error: true
@ -339,7 +339,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: cargo-careful
continue-on-error: true
@ -365,7 +365,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: coverage-cargo-${{ matrix.os }}
continue-on-error: true
@ -404,7 +404,7 @@ jobs:
path: |
.nox/emscripten
key: ${{ hashFiles('emscripten/*') }} - ${{ hashFiles('noxfile.py') }} - ${{ steps.setup-python.outputs.python-path }}
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: cargo-emscripten-wasm32
- name: Build