Skip to content

Commit fe7021b

Browse files
SzymonKubicaqmonnet
authored andcommitted
Add a workflow job to build and run the tests available under no_std.
Signed-off-by: SzymonKubica <[email protected]>
1 parent c08db1b commit fe7021b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20+
toolchain: [stable, beta, nightly]
21+
features: [--all-features]
2022
include:
21-
- toolchain: stable
22-
- toolchain: beta
2323
- toolchain: nightly
24-
24+
features: --no-default-features
2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
@@ -33,12 +33,12 @@ jobs:
3333
override: true
3434
components: clippy
3535

36-
- name: Build with ${{ matrix.toolchain }}
36+
- name: Build with ${{ matrix.toolchain }}, ${{ matrix.features }}
3737
run: |
3838
cargo +${{ matrix.toolchain }} build \
39-
--release --all-features --all-targets
39+
--release ${{ matrix.features }} --all-targets
4040
41-
- name: Test with ${{ matrix.toolchain }}
41+
- name: Test with ${{ matrix.toolchain }}, ${{ matrix.features }}
4242
run: |
4343
if [[ "${{ matrix.toolchain }}" == 'nightly' ]]; then
4444
export RUSTDOCFLAGS='-Zsanitizer=address'
@@ -47,7 +47,7 @@ jobs:
4747
fi
4848
cargo +${{ matrix.toolchain }} test \
4949
--target=x86_64-unknown-linux-gnu \
50-
--all-features
50+
${{ matrix.features }}
5151
5252
- name: Lint with ${{ matrix.toolchain }}
5353
run: |

0 commit comments

Comments
 (0)