Skip to content

Commit

Permalink
Use matrix to test features
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye committed Apr 10, 2023
1 parent a2e78f7 commit 4989813
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4989813

Please sign in to comment.