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:
committed by
Emilio Cobos Álvarez
parent
09c386c98f
commit
36ebe9a4a6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user