Skip to content

Commit ac4ddc1

Browse files
committed
Run clippy against all the build targets.
This will make catch more issues.
1 parent 459e1f1 commit ac4ddc1

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/clippy.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,41 @@ name: Clippy check
77
jobs:
88
clippy:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
# All generated code should be running on stable now
13+
rust: [stable]
14+
target: [
15+
"thumbv8m.main-none-eabihf",
16+
# "thumbv8m.main-none-eabi",
17+
# "thumbv8m.base-none-eabi",
18+
# "thumbv7em-none-eabihf",
19+
# "thumbv7em-none-eabi",
20+
# "thumbv7m-none-eabi",
21+
# "thumbv6m-none-eabi",
22+
]
23+
24+
# include:
25+
# # Test MSRV
26+
# - rust: 1.85.0
27+
28+
# # Test nightly but don't fail
29+
# - rust: nightly
30+
# experimental: true
1031
steps:
1132
- uses: actions/checkout@v4
12-
- uses: dtolnay/rust-toolchain@1.85
33+
- uses: dtolnay/rust-toolchain@master
1334
with:
35+
toolchain: ${{ matrix.rust }}
36+
target: ${{ matrix.target }}
1437
components: clippy
15-
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
38+
- name: Run clippy
39+
run: cargo clippy -p cortex-m -p cortex-m-rt --features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings
40+
# run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
41+
42+
# steps:
43+
# - uses: actions/checkout@v4
44+
# - uses: dtolnay/rust-toolchain@1.85
45+
# with:
46+
# components: clippy
47+
# - run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

0 commit comments

Comments
 (0)