Skip to content

Commit

Permalink
Attempt to add a combined min-version msrv check
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Nov 22, 2023
1 parent 8367e9d commit d5dd68b
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,33 @@ jobs:
- name: Test with minimal versions
run: cargo minimal-versions test -- --test-threads 1

min-versions-msrv:
name: Minimal Depencency Versions (MSRV)
runs-on: ubuntu-latest
needs: [lints, docs]
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install cargo-msrv
uses: taiki-e/install-action@v2
with:
tool: cargo-msrv
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Install cargo-minimal-versions
uses: taiki-e/install-action@cargo-minimal-versions

#- uses: Swatinem/rust-cache@v1

- name: Check with minimal versions
run: cargo msrv verify -- cargo minimal-versions check --workspace --ignore-private

- name: Test with minimal versions
run: cargo msrv verify -- cargo minimal-versions test -- --test-threads 1

lints:
name: Lints
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,7 +197,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
if: github.event_name == 'release'
needs: [build, test, msrv, lints, docs, leaks, semver, min-versions]
needs: [build, test, msrv, lints, docs, leaks, semver, min-versions, min-versions-msrv]
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down

0 comments on commit d5dd68b

Please sign in to comment.