Skip to content

Commit 4ab2801

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 4ab2801

1 file changed

Lines changed: 39 additions & 3 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,47 @@ 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
15+
# target: thumbv8m.main-none-eabihf
1416
components: clippy
15-
- run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
17+
- name: Run clippy
18+
run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings
19+
clippy_cortex_crates:
20+
runs-on: ubuntu-latest
21+
continue-on-error: true
22+
strategy:
23+
matrix:
24+
# All generated code should be running on stable now
25+
rust: [1.94.0]
26+
target:
27+
[
28+
"thumbv8m.main-none-eabihf",
29+
"thumbv8m.main-none-eabi",
30+
"thumbv8m.base-none-eabi",
31+
32+
"thumbv7em-none-eabihf",
33+
"thumbv7em-none-eabi",
34+
"thumbv7m-none-eabi",
35+
36+
"thumbv6m-none-eabi",
37+
]
38+
39+
# # Test nightly but don't fail
40+
# - rust: nightly
41+
# experimental: true
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: dtolnay/rust-toolchain@master
45+
with:
46+
toolchain: ${{ matrix.rust }}
47+
target: ${{ matrix.target }}
48+
components: clippy
49+
- name: Run clippy
50+
run: cargo clippy --all --exclude testsuite --exclude xtask --features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings
51+
# run: cargo clippy --all --features cortex-m/critical-section-single-core -- --deny warnings

0 commit comments

Comments
 (0)