Jelajahi Sumber

Add a workflow job to build and run the tests available under no_std.

Signed-off-by: SzymonKubica <szymo.kubica@gmail.com>
SzymonKubica 1 tahun lalu
induk
melakukan
fe7021b07b
1 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 7 7
      .github/workflows/test.yaml

+ 7 - 7
.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: |