Skip to content

Commit 41cdc1c

Browse files
committed
Split clippy and rustfmt jobs
Signed-off-by: Nico Burns <[email protected]>
1 parent 91e6c0c commit 41cdc1c

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,23 @@ jobs:
4848
4949
- run: cargo check --lib --all-features
5050

51-
lint:
52-
name: Lint
51+
format:
52+
name: Format
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v4
56-
57-
- name: Install stable toolchain
58-
run: |
59-
rustup set profile minimal
60-
rustup override set stable
61-
62-
- name: Install clippy
63-
run: |
64-
rustup component add clippy
65-
rustup component add rustfmt
66-
67-
- name: Format
56+
- name: Install rustfmt
57+
run: rustup component add rustfmt
58+
- name: Check Format
6859
run: cargo fmt --all -- --check
6960

61+
clippy:
62+
name: Clippy
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- name: Install clippy
67+
run: rustup component add clippy
7068
- name: Run clippy
7169
run: cargo clippy --all-features --all-targets -- -D warnings
7270

0 commit comments

Comments
 (0)