From 9f826f1ceef7a9c5bd14e447d6a7cf0921a497af Mon Sep 17 00:00:00 2001 From: Aetf Date: Thu, 25 Apr 2024 03:29:01 -0700 Subject: [PATCH] Change the way MSRV is checked in CI --- .github/workflows/rust.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ecdc15b..9ec2d05 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,6 +43,14 @@ jobs: - run: cargo clippy --offline --all-features --all-targets - run: cargo doc --offline --all-features --no-deps + msrv: + name: Check MSRV + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack check --rust-version --workspace --all-targets --ignore-private + features: name: Features ${{ matrix.toolchain }} ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -52,7 +60,6 @@ jobs: toolchain: - stable - beta - - 1.68 # MSRV: minimum supported Rust version os: - ubuntu-latest - macos-latest @@ -64,12 +71,9 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - - uses: Swatinem/rust-cache@v2 - - name: Install cargo-hack - uses: taiki-e/install-action@v2 - with: - tool: cargo-hack + - uses: Swatinem/rust-cache@v2 + - uses: taiki-e/install-action@cargo-hack - uses: actions/checkout@v4 - run: cargo fetch --locked @@ -91,7 +95,6 @@ jobs: - stable - beta - nightly - - 1.68 # MSRV: minimum supported Rust version os: - ubuntu-latest - macos-latest