CI: Install toolchain in one step

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.
This commit is contained in:
Jonathan Schwender
2023-03-08 16:33:32 +01:00
committed by Emilio Cobos Álvarez
parent 09c386c98f
commit 36ebe9a4a6
+2 -8
View File
@@ -17,12 +17,9 @@ jobs:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
components: "clippy, rustfmt"
- name: Run rustfmt
uses: actions-rs/cargo@v1
@@ -30,9 +27,6 @@ jobs:
command: fmt
args: -- --check
- name: Install clippy
uses: dtolnay/rust-toolchain@clippy
- name: Run clippy
run: |
cargo clippy --workspace -- -D warnings