Skip to content

Commit

Permalink
Update actions/cache action to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 7, 2024
1 parent 0adc9d7 commit 7689855
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: rust-version
run: echo "::set-output name=version:$(rustc --version)"
- name: Index cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cargo/registry/index
key: index-${{ github.run_id }}
Expand All @@ -35,14 +35,14 @@ jobs:
- name: Create lockfile
run: cargo generate-lockfile
- name: Registry cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cargo/registry/cache
key: registry-${{ hashFiles('Cargo.lock') }}
- name: Fetch dependencies
run: cargo fetch
- name: Target cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: target
key: target-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
Expand Down

0 comments on commit 7689855

Please sign in to comment.