-
Notifications
You must be signed in to change notification settings - Fork 189
55 lines (51 loc) · 1.51 KB
/
clippy.yml
File metadata and controls
55 lines (51 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
pull_request:
merge_group:
workflow_dispatch:
name: Clippy check
jobs:
clippy_std_code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.94.0
with:
# toolchain: 1.94.0
components: clippy
- name: Run clippy
run: cargo clippy --workspace --features cortex-m/critical-section-single-core -- --deny warnings
clippy_cortex_crates:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
# All generated code should be running on stable now
rust: [1.94.0]
target:
[
"thumbv8m.main-none-eabihf",
"thumbv8m.main-none-eabi",
"thumbv8m.base-none-eabi",
"thumbv7em-none-eabihf",
"thumbv7em-none-eabi",
"thumbv7m-none-eabi",
"thumbv6m-none-eabi",
]
# # Test nightly but don't fail
# - rust: nightly
# experimental: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
components: clippy
- name: Run clippy
# The excluded packages require std.
run: >-
cargo clippy --workspace
--exclude cortex-m-macros
--exclude testsuite
--exclude xtask
--features cortex-m/critical-section-single-core --target ${{matrix.target}} -- --deny warnings