Skip to content

Commit 1702cb0

Browse files
authored
Fix MSRV check target (#22)
1 parent 2d1522f commit 1702cb0

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/ci.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,24 @@ jobs:
134134
- name: Install cargo-msrv
135135
run: cargo binstall --version 0.16.0-beta.22 --no-confirm cargo-msrv
136136

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+
137153
- 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
141155

142156
semver:
143157
name: Semantic Versioning

0 commit comments

Comments
 (0)