Skip to content

Commit

Permalink
fix(ci): put flags inside matrix correctly (#20)
Browse files Browse the repository at this point in the history
fix: put flags inside matrix correctly
  • Loading branch information
Evalir authored Nov 7, 2023
1 parent 816184a commit 87cba17
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
rust: ["stable", "beta", "nightly", "1.65"]
flags: ["--no-default-features", "", "--all-features"]
exclude:
# Skip because some features have highest MSRV.
- rust: "1.65" # MSRV
flag: "--all-features"
flags:
- name: no default features
flags: --no-default-features
- name: default features
flags: ""
- name: all features
flags: --all-features
flags: "--all-features"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -36,7 +31,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: build
if: ${{ matrix.rust == '1.65' }} # MSRV
run: cargo build --workspace ${{ matrix.flags}}
run: cargo build --workspace ${{ matrix.flags }}
- name: test ${{ matrix.flags.flags }}
shell: bash
run: |
Expand Down

0 comments on commit 87cba17

Please sign in to comment.