Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use matrix feature flags #18

Merged
merged 1 commit into from Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 9 additions & 15 deletions .github/workflows/ci-version.yml
Expand Up @@ -20,6 +20,12 @@ jobs:
toolchain:
- stable
- nightly
feature-flags:
- ''
- '--features serde'
- '--no-default-features'
- '-no-default-features --features alloc'
- '--no-default-features --features serde'
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,18 +35,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- run: cargo build --release
- run: cargo test --release
- run: cargo doc --release
- run: cargo build --release --features serde
- run: cargo test --release --features serde
- run: cargo doc --release --features serde
- run: cargo build --release --no-default-features
- run: cargo test --release --no-default-features
- run: cargo doc --release --no-default-features
- run: cargo build --release --no-default-features --features alloc
- run: cargo test --release --no-default-features --features alloc
- run: cargo doc --release --no-default-features --features alloc
- run: cargo build --release --no-default-features --features serde
- run: cargo test --release --no-default-features --features serde
- run: cargo doc --release --no-default-features --features serde
- run: cargo build --release ${{ matrix.feature-flags }}
- run: cargo test --release ${{ matrix.feature-flags }}
- run: cargo doc --release ${{ matrix.feature-flags }}
24 changes: 9 additions & 15 deletions .github/workflows/ci.yml
Expand Up @@ -38,6 +38,12 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
feature-flags:
- ''
- '--features serde'
- '--no-default-features'
- '--no-default-features --features alloc'
- '--no-default-features --features serde'
toolchain:
- stable
- nightly
Expand All @@ -50,18 +56,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- run: cargo build
- run: cargo test
- run: cargo doc
- run: cargo build --features serde
- run: cargo test --features serde
- run: cargo doc --features serde
- run: cargo build --no-default-features
- run: cargo test --no-default-features
- run: cargo doc --no-default-features
- run: cargo build --no-default-features --features alloc
- run: cargo test --no-default-features --features alloc
- run: cargo doc --no-default-features --features alloc
- run: cargo build --no-default-features --features serde
- run: cargo test --no-default-features --features serde
- run: cargo doc --no-default-features --features serde
- run: cargo build ${{ matrix.feature-flags }}
- run: cargo test ${{ matrix.feature-flags }}
- run: cargo doc ${{ matrix.feature-flags }}