mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Use functionality of toolchain action for installing rustup components
This commit is contained in:
6
.github/workflows/build-code.yml
vendored
6
.github/workflows/build-code.yml
vendored
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user