Skip to content

Commit 9516f6f

Browse files
committed
Run clippy against Arm build targets.
The current clippy runs are running against an X86 build of the code This will make clippy exercise the Arm specfic code. I have only enabled 2 as some jobs were cancelled when I enabled all 7 targets.
1 parent 84e5c01 commit 9516f6f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/clippy.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,30 @@ 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: [1.94.0]
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+
# # Test nightly but don't fail
25+
# - rust: nightly
26+
# experimental: true
1027
steps:
1128
- uses: actions/checkout@v4
12-
- uses: dtolnay/rust-toolchain@1.85
29+
- uses: dtolnay/rust-toolchain@master
1330
with:
31+
toolchain: ${{ matrix.rust }}
32+
target: ${{ matrix.target }}
1433
components: clippy
15-
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
34+
- name: Run clippy
35+
run: cargo clippy -p cortex-m -p cortex-m-rt --features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings
36+
# run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

0 commit comments

Comments
 (0)