Skip to content

Commit

Permalink
verify using cargo-msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 27, 2024
1 parent 9b84252 commit 9d49e31
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,30 @@ jobs:
runs-on: ${{ matrix.param.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-hack

- name: Download cargo-msrv
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: foresterre/cargo-msrv
file: "cargo-msrv-x86_64-${{ matrix.param.system }}-v.*\\.tgz"
regex: true

- 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"
cargo msrv --version
- name: Verify MSRV
run: cargo hack msrv verify --output-format=minimal --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

Expand Down

0 comments on commit 9d49e31

Please sign in to comment.