Skip to content

Commit

Permalink
Merge pull request #48 from taiki-e/checkout
Browse files Browse the repository at this point in the history
Update actions/checkout and actions/cache actions
  • Loading branch information
sfackler authored Jan 7, 2024
2 parents 1ab1a4f + 7689855 commit ee179d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update --no-self-update stable
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: sfackler/actions/rustup@master
- uses: sfackler/actions/rustfmt@master

0 comments on commit ee179d7

Please sign in to comment.