9
9
10
10
name : CI
11
11
12
+ env :
13
+ RUSTFLAGS : " -D warnings"
14
+ RUST_BACKTRACE : 1
15
+
12
16
jobs :
13
17
build :
14
18
name : Build
15
19
runs-on : ubuntu-latest
16
- env :
17
- RUSTFLAGS : " -D warnings"
18
20
steps :
19
21
- name : Checkout sources
20
22
uses : actions/checkout@v4
30
32
build_examples :
31
33
name : Build examples
32
34
runs-on : ubuntu-latest
33
- env :
34
- RUSTFLAGS : " -D warnings"
35
35
steps :
36
36
- name : Checkout sources
37
37
uses : actions/checkout@v4
47
47
build_examples_release :
48
48
name : Build examples (release)
49
49
runs-on : ubuntu-latest
50
- env :
51
- RUSTFLAGS : " -D warnings"
52
50
steps :
53
51
- name : Checkout sources
54
52
uses : actions/checkout@v4
64
62
tests :
65
63
name : Run tests (x86_64)
66
64
runs-on : ubuntu-latest
67
- env :
68
- RUSTFLAGS : " -D warnings"
69
- RUST_BACKTRACE : 1
70
65
steps :
71
66
- name : Checkout sources
72
67
uses : actions/checkout@v4
103
98
run : cargo +stable fmt --all -- --check
104
99
105
100
- name : Run cargo clippy
106
- run : cargo clippy --all-features --examples -- -D warnings
101
+ run : cargo clippy --all-features --examples --lib --bins -- -D warnings
107
102
108
103
docs :
109
104
name : Documentation
@@ -120,13 +115,11 @@ jobs:
120
115
- name : Run cargo doc
121
116
env :
122
117
RUSTDOCFLAGS : " -Dwarnings"
123
- run : cargo doc --no-deps --examples
118
+ run : cargo doc --no-deps --all-features
124
119
125
120
msrv :
126
121
name : Minimum Supported Rust Version
127
122
runs-on : ubuntu-latest
128
- env :
129
- RUSTFLAGS : " -D warnings"
130
123
steps :
131
124
- name : Checkout sources
132
125
uses : actions/checkout@v4
@@ -142,9 +135,9 @@ jobs:
142
135
# - uses: Swatinem/rust-cache@v1
143
136
144
137
- name : Check MSRV
145
- # run: cargo msrv --log-target=stdout --log-level debug --output-format json --features "imxrt-hal/imxrt1060,imxrt-ral/imxrt1062" --target=thumbv7em-none-eabihf
146
- # run: cargo msrv --log-target=stdout --log-level debug --output-format json --features "imxrt-hal/imxrt1060,imxrt-ral/imxrt1062" --target=thumbv7em-none-eabihf verify
147
- run : cargo msrv --output-format json --features "imxrt-hal/imxrt1060,imxrt-ral/imxrt1062" --target=thumbv7em-none-eabihf verify
138
+ # run: cargo msrv --log-target=stdout --log-level debug --output-format json --all-features --target=thumbv7em-none-eabihf
139
+ # run: cargo msrv --log-target=stdout --log-level debug --output-format json --all-features --target=thumbv7em-none-eabihf verify
140
+ run : cargo msrv --output-format json --all-features --target=thumbv7em-none-eabihf verify
148
141
149
142
semver :
150
143
name : Semantic Versioning
@@ -161,6 +154,8 @@ jobs:
161
154
targets : thumbv7em-none-eabihf
162
155
- name : Check semver
163
156
uses : obi1kenobi/cargo-semver-checks-action@v2
157
+ with :
158
+ feature-group : " all-features"
164
159
165
160
release :
166
161
name : Publish version
0 commit comments