Skip to content

Commit

Permalink
Add a workflow job to build and run the tests available under no_std.
Browse files Browse the repository at this point in the history
Signed-off-by: SzymonKubica <[email protected]>
  • Loading branch information
SzymonKubica authored and qmonnet committed Jun 17, 2024
1 parent c08db1b commit fe7021b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta, nightly]
features: [--all-features]
include:
- toolchain: stable
- toolchain: beta
- toolchain: nightly

features: --no-default-features
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -33,12 +33,12 @@ jobs:
override: true
components: clippy

- name: Build with ${{ matrix.toolchain }}
- name: Build with ${{ matrix.toolchain }}, ${{ matrix.features }}
run: |
cargo +${{ matrix.toolchain }} build \
--release --all-features --all-targets
--release ${{ matrix.features }} --all-targets
- name: Test with ${{ matrix.toolchain }}
- name: Test with ${{ matrix.toolchain }}, ${{ matrix.features }}
run: |
if [[ "${{ matrix.toolchain }}" == 'nightly' ]]; then
export RUSTDOCFLAGS='-Zsanitizer=address'
Expand All @@ -47,7 +47,7 @@ jobs:
fi
cargo +${{ matrix.toolchain }} test \
--target=x86_64-unknown-linux-gnu \
--all-features
${{ matrix.features }}
- name: Lint with ${{ matrix.toolchain }}
run: |
Expand Down

0 comments on commit fe7021b

Please sign in to comment.