ci: install rustfmt and clippy for the toolchain
Without a rust-toolchain file the action installs a minimal stable, which carries neither component; the format step failed on the first push. Name the two the job uses.
This commit is contained in:
1 parent
a7e1de76ac
commit
462124014c
1 file changed
+4
@@ -13,7 +13,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
|
# Without a rust-toolchain file this installs a minimal stable,
|
||||||
|
# which carries neither component; the job uses both.
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|||||||
Reference in new issue
Block a user