Skip to content

Commit b43a410

Browse files
committed
add matrix
1 parent 03b8ff2 commit b43a410

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
build_matrix:
14+
strategy:
15+
matrix:
16+
os: [ ubuntu-latest, macos-latest, windows-latest ]
17+
features: [ "", "--no-default-features", "--all-features" ]
1418

15-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
1620

1721
steps:
1822
- uses: actions/checkout@v4
1923
- name: Build
20-
run: cargo build --verbose
24+
run: cargo build --verbose ${{ matrix.features }}
2125
- name: Run tests
22-
run: cargo test --verbose
26+
run: cargo test --verbose ${{ matrix.features }}

0 commit comments

Comments
 (0)