Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit c23fcc5

Browse files
LucioFrancotaiki-e
authored andcommitted
chore: Add cargo-hack to check features (hyperium#105)
* chore: Add `cargo-hack` to check features Signed-off-by: Lucio Franco <[email protected]> * Update .github/workflows/CI.yml Co-Authored-By: Taiki Endo <[email protected]>
1 parent c7096a9 commit c23fcc5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ jobs:
2424
- uses: actions/checkout@master
2525
- name: Install rustfmt
2626
run: rustup component add rustfmt
27+
- name: Install cargo-hack
28+
run: cargo install cargo-hack
2729
- name: Check fmt
2830
run: cargo fmt -- --check
29-
- name: Check all
30-
run: cargo check --all
31-
- name: Check with no default features
32-
run: cargo check -p tonic --no-default-features
33-
- name: Check with transport no tls
34-
run: cargo check -p tonic
35-
- name: Check with transport w/ openssl
36-
run: cargo check -p tonic --features openssl
37-
- name: Check with transport w/ rustls
38-
run: cargo check -p tonic --features rustls
31+
- name: Check features
32+
run: cargo hack check --all --each-feature --no-dev-deps
33+
- name: Check all targets
34+
run: cargo check --all --all-targets --all-features
3935

4036
test:
4137
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)