Jelajahi Sumber

ci: Add `--all-features` to CI

This tests the Cranelift JIT in CI

Signed-off-by: Afonso Bordado <afonsobordado@az8.co>
Afonso Bordado 1 tahun lalu
induk
melakukan
73ad1e23ba
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 2 1
      .github/workflows/test.yaml
  2. 2 2
      mk/appveyor.bat

+ 2 - 1
.github/workflows/test.yaml

@@ -46,7 +46,8 @@ jobs:
               export ASAN_OPTIONS='detect_leaks=1'
           fi
           cargo +${{ matrix.toolchain }} test \
-              --target=x86_64-unknown-linux-gnu
+              --target=x86_64-unknown-linux-gnu \
+              --all-features
 
       - name: Lint with ${{ matrix.toolchain }}
         run: |

+ 2 - 2
mk/appveyor.bat

@@ -59,10 +59,10 @@ cl /?
 rustc --version
 cargo --version
 
-cargo test -vv %CARGO_MODE%
+cargo test --all-features -vv %CARGO_MODE%
 if %ERRORLEVEL% NEQ 0 exit 1
 
 REM Verify that `cargo build`, independent from `cargo test`, works; i.e.
 REM verify that non-test builds aren't trying to use test-only features.
-cargo build -vv %CARGO_MODE%
+cargo build --all-features -vv %CARGO_MODE%
 if %ERRORLEVEL% NEQ 0 exit 1