From 49898138cd930404a705abcaafff38aeea044364 Mon Sep 17 00:00:00 2001 From: Andreas Weibye <13300393+Weibye@users.noreply.github.com> Date: Mon, 10 Apr 2023 10:12:14 +0200 Subject: [PATCH] Use matrix to test features --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e6241e11..8221d922e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,19 @@ name: Continuous integration jobs: # None + feature-matrix: + runs-on: ubuntu-latest + strategy: + matrix: + layout-feature: [flexbox, grid] + memory-feature: [std, alloc] + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - uses: Leafwing-Studios/cargo-cache@v1 + - run: cargo build --no-default-features --features ${{ matrix.layout-feature }},${{ matrix.memory-feature }} + - run: cargo test --no-default-features --features ${{ matrix.layout-feature }},${{ matrix.memory-feature }} + test-features-none: name: "Test Suite [Features: None]" runs-on: ubuntu-latest