Skip to content

Commit

Permalink
Add new build job for checking minimal crate versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc committed Mar 21, 2024
1 parent 7602ef7 commit 5ced463
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,28 @@ jobs:
- name: Tests
run: cargo test --all-features

minimal_versions:
name: Minimal crate versions
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

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

- name: Install cargo-minimal-versions
uses: taiki-e/install-action@cargo-minimal-versions

- name: Check minimal versions
if: matrix.rust == 'nightly'
run: cargo clean; cargo update -Z minimal-versions; cargo check --no-default-features --features rustls-tls
run: cargo minimal-versions check --no-default-features --features rustls-tls

MSRV:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5ced463

Please sign in to comment.