Skip to content

Commit 8cf2162

Browse files
committed
Add checks for different combinations of features.
1 parent 941665b commit 8cf2162

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

.github/workflows/ci.yml

+28-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ on:
88
pull_request:
99

1010
jobs:
11-
build:
11+
build-full:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
1515
rust: [stable, beta, nightly]
16-
tls: [rustls, native-tls]
17-
features:
18-
- hyper-h1,hyper-h2
1916
continue-on-error: ${{ matrix.rust == 'nightly' }}
2017
steps:
2118
- uses: actions/checkout@v2
@@ -26,10 +23,34 @@ jobs:
2623
profile: minimal
2724
components: rustfmt, clippy
2825
- name: Build
29-
run: cargo build --verbose --examples --features ${{ matrix.tls }},${{ matrix.features }}
26+
run: cargo build --verbose --examples --all-features
3027
- name: Test
31-
run: cargo test --verbose --features ${{ matrix.tls }},${{ matrix.features }}
28+
run: cargo test --verbose --all-features
3229
- name: Lint
33-
run: cargo clippy --examples --features ${{ matrix.tls }},${{ matrix.features }}
30+
run: cargo clippy --examples --all-features
3431
- name: Format check
3532
run: cargo fmt -- --check
33+
check-features:
34+
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
features:
38+
- ""
39+
- tokio-net
40+
- rustls
41+
- native-tls
42+
- rt
43+
- hyper-h1
44+
- hyper-h2
45+
- rustls,native-tls
46+
- tokio-net,rt,rustls
47+
- tokio-net,native-tls
48+
steps:
49+
- uses: actions/checkout@v2
50+
- uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: stable
53+
override: true
54+
profile: minimal
55+
- name: Check
56+
run: cargo check --verbose --no-default-features --features "${{ matrix.features }}"

0 commit comments

Comments
 (0)