Skip to content

Commit 6cc4018

Browse files
committed
ci: Use reusable workflows for clippy
1 parent 84f7f27 commit 6cc4018

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ defaults:
2828
jobs:
2929
fmt:
3030
uses: smol-rs/.github/.github/workflows/fmt.yml@main
31+
clippy:
32+
uses: smol-rs/.github/.github/workflows/clippy.yml@main
33+
with:
34+
# macOS for kqueue, Windows for windows.
35+
additional-targets: aarch64-apple-darwin x86_64-pc-windows-msvc
3136
security_audit:
3237
uses: smol-rs/.github/.github/workflows/security_audit.yml@main
3338
permissions:
@@ -160,11 +165,3 @@ jobs:
160165
if: startsWith(matrix.os, 'ubuntu')
161166
- run: cargo hack build --no-dev-deps --rust-version --target x86_64-unknown-netbsd
162167
if: startsWith(matrix.os, 'ubuntu')
163-
164-
clippy:
165-
runs-on: ubuntu-latest
166-
steps:
167-
- uses: actions/checkout@v4
168-
- name: Install Rust
169-
run: rustup update stable
170-
- run: cargo clippy --all-features --all-targets

0 commit comments

Comments
 (0)