Skip to content

Commit ecb5668

Browse files
committed
CI: implement features/platform matrix
1 parent 7800f23 commit ecb5668

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,20 @@ name: Actions CI
55
jobs:
66
build_and_test:
77
name: integer-encoding-rs
8-
runs-on: ubuntu-latest
8+
strategy:
9+
features: ["tokio_async", "futures_async", ""]
10+
platform: [ubuntu-latest, windows-latest, macos-latest]
11+
runs-on: ${{ matrix.platform }}
912
steps:
1013
- uses: actions/checkout@v2
1114
- uses: actions-rs/toolchain@v1
1215
with:
1316
toolchain: stable
1417
- uses: actions-rs/cargo@v1
1518
with:
16-
command: test
17-
args: --features tokio_async
18-
- uses: actions-rs/cargo@v1
19-
with:
20-
command: test
21-
args: --features futures_async
19+
command: check
20+
args: --no-default-features --features=${{ matrix.features }}
2221
- uses: actions-rs/cargo@v1
2322
with:
2423
command: test
25-
- uses: actions-rs/cargo@v1
26-
with:
27-
command: build
28-
args: --examples
24+
args: --no-default-features --features=${{ matrix.features }}

0 commit comments

Comments
 (0)