Skip to content

Commit 2d7832c

Browse files
committed
fix msrv ci
1 parent 9d49e31 commit 2d7832c

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/rust.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,18 @@ jobs:
131131

132132
- name: Install cargo-msrv
133133
run: |
134-
tar -xzf "cargo-msrv-x86_64-${{ matrix.param.system }}-v*.tgz" \
135-
-C ~/.cargo/bin --strip-components=1 --wildcards \
136-
"cargo-msrv-x86_64-${{ matrix.param.system }}-v*/cargo-msrv"
134+
find . -name 'cargo-msrv-x86_64*.tgz' -exec mv {} cargo-msrv.tgz \;
135+
tar -tf cargo-msrv.tgz \
136+
| grep '/cargo-msrv' \
137+
| head -n1 \
138+
| xargs -n1 tar -xzf cargo-msrv.tgz -C ~/.cargo/bin --strip-components=1
137139
cargo msrv --version
138140
139-
- name: Verify MSRV
140-
run: cargo hack msrv verify --output-format=minimal --all-features
141+
- name: Verify and Test Rust version
142+
run: |
143+
cargo hack msrv verify --output-format=minimal --all-features
144+
cargo hack --rust-version test --all-targets --all-features
141145
142146
- name: Find MSRV
143147
if: ${{ failure() }}
144148
run: cargo hack msrv find --min=1.75 --output-format=minimal --all-features
145-
146-
- name: Build with MSRV
147-
run: cargo hack --rust-version build --all-targets --all-features
148-
149-
- name: Test with MSRV
150-
run: cargo hack --rust-version test --all-targets --all-features

0 commit comments

Comments
 (0)