Explorar o código

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

This tests the Cranelift JIT in CI

Signed-off-by: Afonso Bordado <afonsobordado@az8.co>
Afonso Bordado hai 1 ano
pai
achega
73ad1e23ba
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  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