Skip to content

Commit

Permalink
Improve msrv mCI: Use cargo-hack instead of hard-coding msrv in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Mar 3, 2024
1 parent 8ee8e39 commit facdf56
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
env:
MSRV: 1.63
steps:
- uses: actions/checkout@master
- name: Install Rust (rustup)
run: |
rustup toolchain install $MSRV --no-self-update --profile minimal
rustup default $MSRV
rustup toolchain install nightly --no-self-update --profile minimal
run: rustup toolchain install nightly --no-self-update --profile minimal
shell: bash

- run: cargo +nightly update -Zminimal-versions

- uses: taiki-e/install-action@cargo-hack

- uses: Swatinem/rust-cache@v2

- run: cargo check
- run: cargo hack check --lib --rust-version --ignore-private

0 comments on commit facdf56

Please sign in to comment.