File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,24 @@ jobs:
134
134
- name : Install cargo-msrv
135
135
run : cargo binstall --version 0.16.0-beta.22 --no-confirm cargo-msrv
136
136
137
+ # TODO: Revert to this, once https://github.com/foresterre/cargo-msrv/issues/936 is fixed.
138
+ # - name: Check with minimal versions
139
+ # # To find out the current MSRV, remove the `rust-version` entry from `Cargo.toml` and run:
140
+ # # run: cargo minimal-versions msrv --output-format json --all-features --target=thumbv7em-none-eabihf --log-target=stdout --log-level debug
141
+ # run: cargo minimal-versions msrv --output-format json --all-features --target thumbv7em-none-eabihf verify
142
+
143
+ # WORKAROUND:
144
+ - name : Determine MSRV
145
+ run : echo "MSRV=$(cargo msrv show --output-format=minimal)" >> $GITHUB_ENV
146
+
147
+ - name : Show MSRV
148
+ run : echo $MSRV
149
+
150
+ - name : Install MSRV Rust version
151
+ run : rustup toolchain install $MSRV --target thumbv7em-none-eabihf
152
+
137
153
- name : Check with minimal versions
138
- # To find out the current MSRV, remove the `rust-version` entry from `Cargo.toml` and run:
139
- # run: cargo minimal-versions msrv --output-format json --all-features --target=thumbv7em-none-eabihf --log-target=stdout --log-level debug
140
- run : cargo minimal-versions msrv --output-format json --all-features --target thumbv7em-none-eabihf verify
154
+ run : cargo +${MSRV} minimal-versions check --target thumbv7em-none-eabihf --all-features
141
155
142
156
semver :
143
157
name : Semantic Versioning
You can’t perform that action at this time.
0 commit comments