Skip to content

Commit

Permalink
Use functionality of toolchain action for installing rustup components
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jul 16, 2020
1 parent 614e5b0 commit e53020c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
with:
profile: minimal
toolchain: nightly
- run: rustup component add rustfmt
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
Expand All @@ -82,7 +83,8 @@ jobs:
with:
profile: minimal
toolchain: nightly
- run: rustup component add clippy
components: clippy, rust-src
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
Expand Down

0 comments on commit e53020c

Please sign in to comment.