From e4d186c0021f5fc87f120633bf33932e542c797a Mon Sep 17 00:00:00 2001 From: SzymonKubica Date: Mon, 3 Jun 2024 23:30:41 +0100 Subject: [PATCH] Add a workflow job to build and run the tests available under no_std. Signed-off-by: SzymonKubica --- .github/workflows/test.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 60eefc28d..38bbfa37a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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' @@ -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: |