Skip to content

Commit 42c98c1

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

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,42 @@ 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+
[
16+
"thumbv8m.main-none-eabihf",
17+
"thumbv8m.main-none-eabi",
18+
"thumbv8m.base-none-eabi",
19+
"thumbv7em-none-eabihf",
20+
"thumbv7em-none-eabi",
21+
"thumbv7m-none-eabi",
22+
"thumbv6m-none-eabi",
23+
]
24+
25+
# include:
26+
# # Test MSRV
27+
# - rust: 1.85.0
28+
29+
# # Test nightly but don't fail
30+
# - rust: nightly
31+
# experimental: true
1032
steps:
1133
- uses: actions/checkout@v4
12-
- uses: dtolnay/rust-toolchain@1.85
34+
- uses: dtolnay/rust-toolchain@master
1335
with:
36+
toolchain: ${{ matrix.rust }}
37+
target: ${{ matrix.target }}
1438
components: clippy
15-
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
39+
- name: Run clippy
40+
run: cargo clippy -p cortex-m -p cortex-m-rt --features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings
41+
# run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
42+
43+
# steps:
44+
# - uses: actions/checkout@v4
45+
# - uses: dtolnay/rust-toolchain@1.85
46+
# with:
47+
# components: clippy
48+
# - run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

0 commit comments

Comments
 (0)