From cd60cab75b5f135b6c1c7b78ac9b9bfa7653f164 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sat, 18 Nov 2023 08:08:55 +0000 Subject: [PATCH] use a matrix job --- .github/workflows/ci.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b485ba..60b6467 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,24 +11,16 @@ env: jobs: build_and_test: - name: Deluxe + strategy: + matrix: + features: ["--all-features", "--no-default-features"] runs-on: ubuntu-latest timeout-minutes: 45 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo build -r --all-features --workspace - - run: cargo test -r --all-features --workspace - - build_and_test_no_default: - name: Deluxe No Default Features - runs-on: ubuntu-latest - timeout-minutes: 45 - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - run: cargo build -r --no-default-features --workspace - - run: cargo test -r --no-default-features --workspace + - run: cargo build -r ${{ matrix.features }} --workspace + - run: cargo test -r ${{ matrix.features }} --workspace rustfmt: name: Deluxe Rustfmt