Skip to content

Commit 0def9db

Browse files
authored
use matrix testing (#39)
Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com>
1 parent ca95c2d commit 0def9db

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci_linux.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ env:
1616

1717
jobs:
1818
build:
19+
strategy:
20+
matrix:
21+
rust-version: [stable, 1.75]
1922

2023
runs-on: ubuntu-latest
2124

2225
steps:
2326
- uses: actions/checkout@v3
2427

28+
- name: Setup rust
29+
run: rustup default ${{ matrix.rust-version }}
30+
2531
- name: Build default features
2632
run: cargo build
2733
- name: Test default features
@@ -32,10 +38,3 @@ jobs:
3238
- name: Test single_threaded_async
3339
run: cargo test --features single_threaded_async
3440

35-
# Build and test with 1.75
36-
- name: Install Rust 1.75
37-
run: rustup default 1.75
38-
- name: Build default features with Rust 1.75
39-
run: cargo build
40-
- name: Test default features with Rust 1.75
41-
run: cargo test

0 commit comments

Comments
 (0)