From eab56f1b633142473c28ef564d3e75134e53de8c Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Mon, 12 Dec 2022 15:08:35 -0500 Subject: [PATCH] Use matrix feature flags --- .github/workflows/ci-version.yml | 24 +++++++++--------------- .github/workflows/ci.yml | 24 +++++++++--------------- 2 files changed, 18 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci-version.yml b/.github/workflows/ci-version.yml index 5ac7474..e66a70b 100644 --- a/.github/workflows/ci-version.yml +++ b/.github/workflows/ci-version.yml @@ -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: @@ -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 \ No newline at end of file + - run: cargo build --release ${{ matrix.feature-flags }} + - run: cargo test --release ${{ matrix.feature-flags }} + - run: cargo doc --release ${{ matrix.feature-flags }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d42bf8..2e8b3b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 \ No newline at end of file + - run: cargo build ${{ matrix.feature-flags }} + - run: cargo test ${{ matrix.feature-flags }} + - run: cargo doc ${{ matrix.feature-flags }} \ No newline at end of file