From 855752292e97c1caada65e7b53ecc5df010ea88a Mon Sep 17 00:00:00 2001 From: Joseph Birr-Pixton Date: Tue, 22 Aug 2023 08:38:02 +0100 Subject: [PATCH] Avoid testing MSRV of dev-dependencies --- .github/workflows/ci.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d38067e..426ee8c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,6 +82,24 @@ jobs: - run: cargo package + msrv: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + + - uses: dtolnay/rust-toolchain@master + with: + # MSRV: Rust 1.47 and later have bugs in rustc that prevent some + # projects from upgrading past 1.46 yet. So, maintain compatibility + # for 1.46 until those bugs are fixed. + # Make sure to update rust-version in Cargo.toml when updating MSRV. + toolchain: 1.46.0 + + - run: | + cargo check --lib --all-features test: runs-on: ${{ matrix.host_os }} @@ -101,13 +119,6 @@ jobs: rust_channel: - stable - nightly - - # MSRV: Rust 1.47 and later have bugs in rustc that prevent some - # projects from upgrading past 1.46 yet. So, maintain compatibility - # for 1.46 until those bugs are fixed. - # Make sure to update rust-version in Cargo.toml when updating MSRV. - - 1.46.0 - - beta exclude: @@ -119,9 +130,6 @@ jobs: - features: --all-features mode: # debug rust_channel: nightly - - features: --all-features - mode: # debug - rust_channel: 1.46.0 - features: --all-features mode: # debug rust_channel: beta @@ -152,11 +160,6 @@ jobs: rust_channel: nightly host_os: ubuntu-20.04 - - features: --all-features - mode: # debug - rust_channel: 1.46.0 - host_os: ubuntu-20.04 - - features: --all-features mode: # debug rust_channel: beta