Skip to content

Commit d0c6aaa

Browse files
committedOct 18, 2021
chore(ci): only run cargo check on MSRV, not tests
1 parent e48519a commit d0c6aaa

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed
 

Diff for: ‎.github/workflows/CI.yml

+31-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
needs:
1616
- style
1717
- test
18+
- msrv
1819
- features
1920
- ffi
2021
- ffi-header
@@ -52,7 +53,6 @@ jobs:
5253
- stable
5354
- beta
5455
- nightly
55-
- 1.46 # keep in sync with MSRV.md dev doc
5656

5757
os:
5858
- ubuntu-latest
@@ -67,8 +67,6 @@ jobs:
6767
- rust: nightly
6868
features: "--features full,nightly"
6969
benches: true
70-
- rust: 1.46
71-
features: "--features full"
7270

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

@@ -96,6 +94,36 @@ jobs:
9694
command: test
9795
args: --benches ${{ matrix.features }}
9896

97+
msrv:
98+
name: Check MSRV (${{ matrix.rust }})
99+
needs: [style]
100+
strategy:
101+
matrix:
102+
rust:
103+
- 1.46 # keep in sync with MSRV.md dev doc
104+
105+
os:
106+
- ubuntu-latest
107+
108+
runs-on: ${{ matrix.os }}
109+
110+
steps:
111+
- name: Checkout
112+
uses: actions/checkout@v1
113+
114+
- name: Install Rust (${{ matrix.rust }})
115+
uses: actions-rs/toolchain@v1
116+
with:
117+
profile: minimal
118+
toolchain: ${{ matrix.rust }}
119+
override: true
120+
121+
- name: Check
122+
uses: actions-rs/cargo@v1
123+
with:
124+
command: check
125+
args: --features full
126+
99127
features:
100128
name: features
101129
needs: [style]

0 commit comments

Comments
 (0)