Skip to content

Commit

Permalink
fix msrv ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 28, 2024
1 parent 9d49e31 commit 2d7832c
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,18 @@ jobs:

- name: Install cargo-msrv
run: |
tar -xzf "cargo-msrv-x86_64-${{ matrix.param.system }}-v*.tgz" \
-C ~/.cargo/bin --strip-components=1 --wildcards \
"cargo-msrv-x86_64-${{ matrix.param.system }}-v*/cargo-msrv"
find . -name 'cargo-msrv-x86_64*.tgz' -exec mv {} cargo-msrv.tgz \;
tar -tf cargo-msrv.tgz \
| grep '/cargo-msrv' \
| head -n1 \
| xargs -n1 tar -xzf cargo-msrv.tgz -C ~/.cargo/bin --strip-components=1
cargo msrv --version
- name: Verify MSRV
run: cargo hack msrv verify --output-format=minimal --all-features
- name: Verify and Test Rust version
run: |
cargo hack msrv verify --output-format=minimal --all-features
cargo hack --rust-version test --all-targets --all-features
- name: Find MSRV
if: ${{ failure() }}
run: cargo hack msrv find --min=1.75 --output-format=minimal --all-features

- name: Build with MSRV
run: cargo hack --rust-version build --all-targets --all-features

- name: Test with MSRV
run: cargo hack --rust-version test --all-targets --all-features

0 comments on commit 2d7832c

Please sign in to comment.