17
17
RUSTFLAGS : " -D warnings"
18
18
steps :
19
19
- name : Checkout sources
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
22
22
- name : Install stable toolchain
23
23
uses : dtolnay/rust-toolchain@stable
34
34
RUSTFLAGS : " -D warnings"
35
35
steps :
36
36
- name : Checkout sources
37
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
38
38
39
39
- name : Install nightly toolchain
40
40
uses : dtolnay/rust-toolchain@nightly
51
51
RUSTFLAGS : " -D warnings"
52
52
steps :
53
53
- name : Checkout sources
54
- uses : actions/checkout@v3
54
+ uses : actions/checkout@v4
55
55
56
56
- name : Install nightly toolchain
57
57
uses : dtolnay/rust-toolchain@nightly
69
69
RUST_BACKTRACE : 1
70
70
steps :
71
71
- name : Checkout sources
72
- uses : actions/checkout@v3
72
+ uses : actions/checkout@v4
73
73
74
74
- name : Install stable toolchain
75
75
uses : dtolnay/rust-toolchain@stable
85
85
runs-on : ubuntu-latest
86
86
steps :
87
87
- name : Checkout sources
88
- uses : actions/checkout@v3
88
+ uses : actions/checkout@v4
89
89
90
90
- name : Install stable toolchain
91
91
uses : dtolnay/rust-toolchain@stable
@@ -110,7 +110,7 @@ jobs:
110
110
runs-on : ubuntu-latest
111
111
steps :
112
112
- name : Checkout sources
113
- uses : actions/checkout@v3
113
+ uses : actions/checkout@v4
114
114
115
115
- name : Install nightly toolchain
116
116
uses : dtolnay/rust-toolchain@nightly
@@ -122,15 +122,55 @@ jobs:
122
122
RUSTDOCFLAGS : " -Dwarnings"
123
123
run : cargo doc --no-deps --examples
124
124
125
+ msrv :
126
+ name : Minimum Supported Rust Version
127
+ runs-on : ubuntu-latest
128
+ env :
129
+ RUSTFLAGS : " -D warnings"
130
+ steps :
131
+ - name : Checkout sources
132
+ uses : actions/checkout@v4
133
+
134
+ - name : Install cargo-binstall
135
+ uses : taiki-e/install-action@v2
136
+ with :
137
+ tool : cargo-binstall
138
+
139
+ - name : Install cargo-msrv
140
+ run : cargo binstall --version 0.16.0-beta.20 --no-confirm cargo-msrv
141
+
142
+ # - uses: Swatinem/rust-cache@v1
143
+
144
+ - 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
148
+
149
+ semver :
150
+ name : Semantic Versioning
151
+ runs-on : ubuntu-latest
152
+ env :
153
+ # No idea why this fixes the check.
154
+ RUSTFLAGS : " --cap-lints=warn"
155
+ steps :
156
+ - name : Checkout sources
157
+ uses : actions/checkout@v4
158
+ - name : Install stable toolchain
159
+ uses : dtolnay/rust-toolchain@stable
160
+ with :
161
+ targets : thumbv7em-none-eabihf
162
+ - name : Check semver
163
+ uses : obi1kenobi/cargo-semver-checks-action@v2
164
+
125
165
release :
126
166
name : Publish version
127
167
runs-on : ubuntu-latest
128
168
environment : production
129
169
if : github.event_name == 'release'
130
- needs : [build_examples, build_examples_release, tests, lints, docs]
170
+ needs : [build_examples, build_examples_release, tests, lints, docs, msrv, semver ]
131
171
steps :
132
172
- name : Checkout sources
133
- uses : actions/checkout@v3
173
+ uses : actions/checkout@v4
134
174
135
175
- name : Install stable toolchain
136
176
uses : dtolnay/rust-toolchain@stable
0 commit comments