Skip to content

Commit 8e397fb

Browse files
committed
ci: split clippy/fmt, use .rustfmt.unstable.toml
1 parent 1c4fdad commit 8e397fb

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

.github/workflows/CI.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
env:
7171
RUST_BACKTRACE: 1
7272

73-
lints:
74-
name: Lints
73+
clippy:
74+
name: Clippy
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: Checkout sources
@@ -82,15 +82,28 @@ jobs:
8282
- name: Install stable toolchain
8383
uses: dtolnay/rust-toolchain@stable
8484
with:
85-
components: rustfmt, clippy
86-
87-
- name: Run cargo fmt
88-
run: cargo fmt --all --check
85+
components: clippy
8986

9087
- name: Run cargo clippy
91-
if: always()
9288
run: cargo clippy --locked --all-features
9389

90+
rustfmt:
91+
name: Format
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: Checkout sources
95+
uses: actions/checkout@v6
96+
with:
97+
persist-credentials: false
98+
99+
- name: Install nightly toolchain
100+
uses: dtolnay/rust-toolchain@nightly
101+
with:
102+
components: rustfmt
103+
104+
- name: Check formatting
105+
run: cargo +nightly fmt-unstable --check
106+
94107
docs:
95108
name: Check for documentation errors
96109
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)