]> Repositorios git - scryer-prolog.git/commitdiff
Clean up test step by compiling in build step
authorinfogulch <[email protected]>
Wed, 6 Dec 2023 02:51:04 +0000 (20:51 -0600)
committerinfogulch <[email protected]>
Wed, 6 Dec 2023 02:51:04 +0000 (20:51 -0600)
.github/workflows/ci.yml

index 9fa463a404759a30cbab06c699d8c836ea4566ae..e35ce825720d33d66d294038b9bb9e13148273a3 100644 (file)
@@ -63,10 +63,11 @@ jobs:
 
       # Build and test.
       - name: Build library
-        run: cargo rustc --lib --target ${{ matrix.target }} ${{ matrix.args }} --verbose
+        continue-on-error: ${{ contains(matrix.target,'wasm32') }} # allow wasm builds to fail tests for now
+        run: cargo build --all-targets --target ${{ matrix.target }} ${{ matrix.args }} --verbose
       - name: Test
         continue-on-error: ${{ contains(matrix.target,'wasm32') }} # allow wasm builds to fail tests for now
-        run: cargo test --target ${{ matrix.target }} ${{ matrix.args }} --all --verbose
+        run: cargo test --target ${{ matrix.target }} ${{ matrix.args }} --all
 
       # On stable rust builds, build a binary and publish as a github actions
       # artifact. These binaries could be useful for testing the pipeline but