Skip to content

Commit 36ebe9a

Browse files
jschweemilio
authored andcommitted
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.
1 parent 09c386c commit 36ebe9a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/cbindgen.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,16 @@ jobs:
1717
- uses: actions/checkout@v2
1818

1919
- name: Install stable
20-
uses: actions-rs/toolchain@v1
20+
uses: dtolnay/rust-toolchain@stable
2121
with:
22-
profile: minimal
23-
toolchain: stable
24-
override: true
25-
components: rustfmt
22+
components: "clippy, rustfmt"
2623

2724
- name: Run rustfmt
2825
uses: actions-rs/cargo@v1
2926
with:
3027
command: fmt
3128
args: -- --check
3229

33-
- name: Install clippy
34-
uses: dtolnay/rust-toolchain@clippy
35-
3630
- name: Run clippy
3731
run: |
3832
cargo clippy --workspace -- -D warnings

0 commit comments

Comments
 (0)