chore(ci): only run cargo check on MSRV, not tests
This commit is contained in:
34
.github/workflows/CI.yml
vendored
34
.github/workflows/CI.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- style
|
- style
|
||||||
- test
|
- test
|
||||||
|
- msrv
|
||||||
- features
|
- features
|
||||||
- ffi
|
- ffi
|
||||||
- ffi-header
|
- ffi-header
|
||||||
@@ -52,7 +53,6 @@ jobs:
|
|||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
- 1.46 # keep in sync with MSRV.md dev doc
|
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
@@ -67,8 +67,6 @@ jobs:
|
|||||||
- rust: nightly
|
- rust: nightly
|
||||||
features: "--features full,nightly"
|
features: "--features full,nightly"
|
||||||
benches: true
|
benches: true
|
||||||
- rust: 1.46
|
|
||||||
features: "--features full"
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@@ -96,6 +94,36 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
args: --benches ${{ matrix.features }}
|
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:
|
features:
|
||||||
name: features
|
name: features
|
||||||
needs: [style]
|
needs: [style]
|
||||||
|
|||||||
Reference in New Issue
Block a user