From 108bad0d86d0ec375b9342013ca03664a30a46e2 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Thu, 31 Oct 2019 12:19:52 -0400 Subject: [PATCH] chore: Add `cargo-hack` to check features (#105) * chore: Add `cargo-hack` to check features Signed-off-by: Lucio Franco * Update .github/workflows/CI.yml Co-Authored-By: Taiki Endo --- .github/workflows/CI.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 620a6805a..ef5e5f206 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,18 +24,14 @@ jobs: - uses: actions/checkout@master - name: Install rustfmt run: rustup component add rustfmt + - name: Install cargo-hack + run: cargo install cargo-hack - name: Check fmt run: cargo fmt -- --check - - name: Check all - run: cargo check --all - - name: Check with no default features - run: cargo check -p tonic --no-default-features - - name: Check with transport no tls - run: cargo check -p tonic - - name: Check with transport w/ openssl - run: cargo check -p tonic --features openssl - - name: Check with transport w/ rustls - run: cargo check -p tonic --features rustls + - name: Check features + run: cargo hack check --all --each-feature --no-dev-deps + - name: Check all targets + run: cargo check --all --all-targets --all-features test: runs-on: ${{ matrix.os }}