File tree Expand file tree Collapse file tree 2 files changed +87
-2
lines changed Expand file tree Collapse file tree 2 files changed +87
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+
8
+ jobs :
9
+ check :
10
+ name : Check
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ mcu :
15
+ - stm32f301
16
+ - stm32f318
17
+ - stm32f302xb
18
+ - stm32f302xc
19
+ - stm32f302xd
20
+ - stm32f302xe
21
+ - stm32f303xb
22
+ - stm32f303xc
23
+ - stm32f303xd
24
+ - stm32f303xe
25
+ - stm32f303x6
26
+ - stm32f303x8
27
+ - stm32f373
28
+ - stm32f378
29
+ - stm32f334
30
+ - stm32f328
31
+ - stm32f358
32
+ - stm32f398
33
+ features : ["rt"]
34
+ include :
35
+ - mcu : stm32f303xc
36
+ features : rt,stm32-usbd
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - uses : actions-rs/toolchain@v1
40
+ with :
41
+ toolchain : stable
42
+ target : thumbv7em-none-eabihf
43
+ override : true
44
+ profile : minimal
45
+ - uses : actions-rs/cargo@v1
46
+ with :
47
+ command : check
48
+ args : --features=${{ matrix.mcu }},${{ matrix.features }}
49
+
50
+ clippy :
51
+ name : Clippy
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - uses : actions/checkout@v2
55
+ - uses : actions-rs/toolchain@v1
56
+ with :
57
+ toolchain : nightly
58
+ target : thumbv7em-none-eabihf
59
+ override : true
60
+ profile : minimal
61
+ components : clippy
62
+ - uses : actions-rs/clippy-check@v1
63
+ with :
64
+ token : ${{ secrets.GITHUB_TOKEN }}
65
+ args : >
66
+ --features=stm32f303xc,rt,stm32-usbd --examples
67
+ -- -D warnings
68
+
69
+ rustfmt :
70
+ name : Rustfmt
71
+ runs-on : ubuntu-latest
72
+ steps :
73
+ - uses : actions/checkout@v2
74
+ - uses : actions-rs/toolchain@v1
75
+ with :
76
+ toolchain : stable
77
+ override : true
78
+ profile : minimal
79
+ components : rustfmt
80
+ - uses : actions-rs/cargo@v1
81
+ with :
82
+ command : fmt
83
+ args : --all -- --check
Original file line number Diff line number Diff line change @@ -53,10 +53,13 @@ cortex-m-semihosting = "0.3"
53
53
54
54
[features ]
55
55
default = [" unproven" ]
56
+ unproven = [" embedded-hal/unproven" ]
56
57
device-selected = []
57
58
direct-call-deprecated = []
58
59
rt = [" stm32f3/rt" ]
59
- # Any Changes here should be mirrored in README.md and src/lib.rs
60
+
61
+ # Any Changes here should be mirrored in README.md, src/lib.rs, and
62
+ # .github/workflows/ci.yml.
60
63
stm32f301 = [" stm32f3/stm32f301" , " device-selected" ]
61
64
stm32f318 = [" stm32f3/stm32f301" , " device-selected" ]
62
65
stm32f302 = [" stm32f3/stm32f302" , " direct-call-deprecated" ]
@@ -77,7 +80,6 @@ stm32f334 = ["stm32f3/stm32f3x4", "device-selected"]
77
80
stm32f328 = [" stm32f3/stm32f3x8" , " device-selected" ]
78
81
stm32f358 = [" stm32f3/stm32f3x8" , " device-selected" ]
79
82
stm32f398 = [" stm32f3/stm32f3x8" , " device-selected" ]
80
- unproven = [" embedded-hal/unproven" ]
81
83
82
84
[profile .dev ]
83
85
debug = true
You can’t perform that action at this time.
0 commit comments