Skip to content

Commit

Permalink
chore(ci): only run cargo check on MSRV, not tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 18, 2021
1 parent e48519a commit d0c6aaa
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
needs:
- style
- test
- msrv
- features
- ffi
- ffi-header
Expand Down Expand Up @@ -52,7 +53,6 @@ jobs:
- stable
- beta
- nightly
- 1.46 # keep in sync with MSRV.md dev doc

os:
- ubuntu-latest
Expand All @@ -67,8 +67,6 @@ jobs:
- rust: nightly
features: "--features full,nightly"
benches: true
- rust: 1.46
features: "--features full"

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -96,6 +94,36 @@ jobs:
command: test
args: --benches ${{ matrix.features }}

msrv:
name: Check MSRV (${{ matrix.rust }})
needs: [style]
strategy:
matrix:
rust:
- 1.46 # keep in sync with MSRV.md dev doc

os:
- ubuntu-latest

runs-on: ${{ matrix.os }}

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

- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --features full

features:
name: features
needs: [style]
Expand Down

0 comments on commit d0c6aaa

Please sign in to comment.