Update to actions/cache@v4 (#328)
This commit is contained in:
parent
ae1851ba03
commit
221efdfea9
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
id: rust-version
|
id: rust-version
|
||||||
run: echo "::set-output name=version::$(rustc --version)"
|
run: echo "::set-output name=version::$(rustc --version)"
|
||||||
- name: Cache cargo index
|
- name: Cache cargo index
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/index
|
path: ~/.cargo/registry/index
|
||||||
key: index-${{ runner.os }}-${{ github.run_number }}
|
key: index-${{ runner.os }}-${{ github.run_number }}
|
||||||
|
|
@ -45,14 +45,14 @@ jobs:
|
||||||
- name: Create lockfile
|
- name: Create lockfile
|
||||||
run: cargo generate-lockfile
|
run: cargo generate-lockfile
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry/cache
|
path: ~/.cargo/registry/cache
|
||||||
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
- name: Fetch dependencies
|
- name: Fetch dependencies
|
||||||
run: cargo fetch
|
run: cargo fetch
|
||||||
- name: Cache target directory
|
- name: Cache target directory
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue