Skip to content

Commit

Permalink
Avoid testing MSRV of dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Aug 22, 2023
1 parent 73a7f0c commit 8557522
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8557522

Please sign in to comment.