Skip to content

Commit

Permalink
Add checks for different combinations of features.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Mar 20, 2022
1 parent 941665b commit 8cf2162
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ on:
pull_request:

jobs:
build:
build-full:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
tls: [rustls, native-tls]
features:
- hyper-h1,hyper-h2
continue-on-error: ${{ matrix.rust == 'nightly' }}
steps:
- uses: actions/checkout@v2
Expand All @@ -26,10 +23,34 @@ jobs:
profile: minimal
components: rustfmt, clippy
- name: Build
run: cargo build --verbose --examples --features ${{ matrix.tls }},${{ matrix.features }}
run: cargo build --verbose --examples --all-features
- name: Test
run: cargo test --verbose --features ${{ matrix.tls }},${{ matrix.features }}
run: cargo test --verbose --all-features
- name: Lint
run: cargo clippy --examples --features ${{ matrix.tls }},${{ matrix.features }}
run: cargo clippy --examples --all-features
- name: Format check
run: cargo fmt -- --check
check-features:
runs-on: ubuntu-latest
strategy:
matrix:
features:
- ""
- tokio-net
- rustls
- native-tls
- rt
- hyper-h1
- hyper-h2
- rustls,native-tls
- tokio-net,rt,rustls
- tokio-net,native-tls
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- name: Check
run: cargo check --verbose --no-default-features --features "${{ matrix.features }}"

0 comments on commit 8cf2162

Please sign in to comment.