Skip to content

Commit

Permalink
.github: Update GitHub Actions
Browse files Browse the repository at this point in the history
- Use actions/checkout@v4 instead of v3
- actions-rs/toolchain has been obsoleted for 4 years. Use dtolnay/rust-toolchain instead
- Use stable toolchain instead of nightly
- Cache builds to be green
  • Loading branch information
simnalamburt committed Oct 4, 2024
1 parent f7825ba commit 632d81d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
submodules: recursive

- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
- name: Install cargo-audit
run: cargo install cargo-audit

Expand Down

0 comments on commit 632d81d

Please sign in to comment.