Skip to content

Commit

Permalink
Update actions to avoid Node.js 12 actions (#307)
Browse files Browse the repository at this point in the history
* Update actions to avoid Node.js 12 actions

* Use dtolnay/rust-toolchain
  • Loading branch information
giraffate authored Apr 10, 2023
1 parent 8fba79b commit 031d4cf
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,21 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
- run: cargo clippy --all-targets --all-features -- -D warnings

tests:
name: Tests
Expand All @@ -61,9 +48,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: hecrj/setup-rust-action@v1
uses: dtolnay/rust-toolchain@master
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}

- name: Build System Info
run: rustc --version
Expand Down

0 comments on commit 031d4cf

Please sign in to comment.