Update actions/cache

This commit is contained in:
dbr 2025-01-21 14:37:24 +10:30 committed by Jonathan Spira
parent e78f50512f
commit 23e08485a3

View File

@ -29,7 +29,7 @@ jobs:
with: with:
components: clippy components: clippy
- name: Cache cargo directories - name: Cache cargo directories
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/registry
@ -39,7 +39,7 @@ jobs:
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Cache cargo target dirs - name: Cache cargo target dirs
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: target path: target
key: ${{ runner.os }}-target-lint-stable-${{ hashFiles('**/Cargo.toml') }} key: ${{ runner.os }}-target-lint-stable-${{ hashFiles('**/Cargo.toml') }}
@ -97,7 +97,7 @@ jobs:
brew install gnu-tar brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
- name: Cache cargo directories - name: Cache cargo directories
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/registry
@ -107,7 +107,7 @@ jobs:
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Cache cargo target dirs - name: Cache cargo target dirs
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: target path: target
# note `cargo test` and `cargo clippy` don't use the same build # note `cargo test` and `cargo clippy` don't use the same build