Skip to content

Commit

Permalink
CI: Install toolchain in one step
Browse files Browse the repository at this point in the history
Instead of two steps installing the toolchain, do it one step.
Removes the unmaintained action-rs/toolchain action.
Installs stable clippy instead of nightly clippy.
  • Loading branch information
jschwe committed Mar 8, 2023
1 parent 9016cb7 commit 723f3dd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/cbindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,17 @@ jobs:
- uses: actions/checkout@v2

- name: Install stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
components: "clippy, rustfmt"

- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

- name: Install clippy
uses: dtolnay/rust-toolchain@clippy

- name: Run clippy
run: |
cargo clippy --workspace -- -D warnings
Expand Down

0 comments on commit 723f3dd

Please sign in to comment.