Skip to content

Commit

Permalink
use a matrix job
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Nov 18, 2023
1 parent 5dbb603 commit cd60cab
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd60cab

Please sign in to comment.