Skip to content

Commit 5564a3a

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 e88de85 commit 5564a3a

1 file changed

Lines changed: 43 additions & 3 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,51 @@ on:
55

66
name: Clippy check
77
jobs:
8-
clippy:
8+
clippy_std_code:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: dtolnay/rust-toolchain@1.85
12+
- uses: dtolnay/rust-toolchain@1.94.0
1313
with:
14+
# toolchain: 1.94.0
1415
components: clippy
15-
- run: cargo clippy --workspace --features cortex-m/critical-section-single-core -- --deny warnings
16+
- name: Run clippy
17+
run: cargo clippy --workspace --features cortex-m/critical-section-single-core -- --deny warnings
18+
clippy_cortex_crates:
19+
runs-on: ubuntu-latest
20+
continue-on-error: true
21+
strategy:
22+
matrix:
23+
# All generated code should be running on stable now
24+
rust: [1.94.0]
25+
target:
26+
[
27+
"thumbv8m.main-none-eabihf",
28+
"thumbv8m.main-none-eabi",
29+
"thumbv8m.base-none-eabi",
30+
31+
"thumbv7em-none-eabihf",
32+
"thumbv7em-none-eabi",
33+
"thumbv7m-none-eabi",
34+
35+
"thumbv6m-none-eabi",
36+
]
37+
38+
# # Test nightly but don't fail
39+
# - rust: nightly
40+
# experimental: true
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: dtolnay/rust-toolchain@master
44+
with:
45+
toolchain: ${{ matrix.rust }}
46+
target: ${{ matrix.target }}
47+
components: clippy
48+
- name: Run clippy
49+
# The excluded packages require std.
50+
run: >
51+
cargo clippy --workspace
52+
--exclude cortex-m-macros
53+
--exclude testsuite
54+
--exclude xtask
55+
--features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings

0 commit comments

Comments
 (0)