Skip to content

Commit 973fca6

Browse files
committed
ci: check: use rustup instead of some actions
Setting up stable rust is easy. Let's not pretend that it is not. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
1 parent c945f33 commit 973fca6

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

.github/workflows/check.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,13 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v6
22-
- uses: actions-rs/toolchain@v1
23-
with:
24-
profile: minimal
25-
toolchain: stable
26-
components: rustfmt
27-
override: true
28-
- uses: actions-rs/cargo@v1
29-
with:
30-
command: fmt
31-
args: --all -- --check
22+
- run: rustup toolchain install stable
23+
- run: rustup run stable cargo fmt --all -- --check
3224

3325
clippy:
3426
name: cargo clippy
3527
runs-on: ubuntu-latest
3628
steps:
3729
- uses: actions/checkout@v6
38-
- uses: actions-rs/toolchain@v1
39-
with:
40-
toolchain: stable
41-
components: clippy
42-
override: true
43-
- uses: actions-rs/cargo@v1
44-
with:
45-
command: clippy
30+
- run: rustup toolchain install stable
31+
- run: rustup run stable cargo clippy --all

0 commit comments

Comments
 (0)