Update to actions/cache@v4 (#328)

This commit is contained in:
andrew-signal 2025-03-10 13:03:32 -04:00 committed by GitHub
parent ae1851ba03
commit 221efdfea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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') }}