Skip to content

Commit 35da9a4

Browse files
committed
Test no_std via CI
1 parent 6ac7283 commit 35da9a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/rust.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
run:
77
name: Run
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
features: [--all-features, --no-default-features]
912
steps:
1013
- name: Install Rust stable
1114
uses: actions-rs/toolchain@v1
@@ -22,16 +25,16 @@ jobs:
2225
uses: actions-rs/cargo@v1
2326
with:
2427
command: build
25-
args: --workspace
28+
args: --workspace ${{ matrix.features }}
2629

2730
- name: Lint
2831
uses: actions-rs/cargo@v1
2932
with:
3033
command: clippy
31-
args: --workspace -- -D warnings
34+
args: --workspace ${{ matrix.features }} -- -D warnings
3235

3336
- name: Test
3437
uses: actions-rs/cargo@v1
3538
with:
3639
command: test
37-
args: --workspace
40+
args: --workspace ${{ matrix.features }}

0 commit comments

Comments
 (0)