Use functionality of toolchain action for installing rustup components

This commit is contained in:
Philipp Oppermann
2020-07-16 16:43:02 +02:00
parent 614e5b0e86
commit 263e852dcc

View File

@@ -67,7 +67,8 @@ jobs:
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
- run: rustup component add rustfmt components: rustfmt
override: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
@@ -82,7 +83,8 @@ jobs:
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
- run: rustup component add clippy components: clippy, rust-src
override: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy