File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
cargo install cargo-binutils
28
28
rustup component add llvm-tools-preview
29
29
- name : Check
30
- run : cargo check --target thumbv7em-none-eabi
30
+ run : cargo check --features cortex-m -- target thumbv7em-none-eabi
31
31
- name : Clippy
32
- run : cargo clippy --target thumbv7em-none-eabi
32
+ run : cargo clippy --features cortex-m -- target thumbv7em-none-eabi
33
33
- name : Format
34
34
run : cargo fmt
Original file line number Diff line number Diff line change 12
12
#![ no_main]
13
13
#![ macro_use]
14
14
15
- #[ cfg( not( any( feature = "cortex-m" , feature = "risc-v" , feature = "panic-handler" ) ) ) ]
15
+ #[ cfg( all(
16
+ not( any( feature = "cortex-m" , feature = "risc-v" ) ) ,
17
+ all( not( test) , feature = "panic-handler" )
18
+ ) ) ]
16
19
compile_error ! ( "Enable either the cortex-m or risc-v feature" ) ;
17
20
18
21
#[ cfg( all( not( test) , feature = "panic-handler" ) ) ]
You can’t perform that action at this time.
0 commit comments