diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d499e91a..98ab144f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,15 +211,14 @@ jobs: - name: Set Android Linker path if: endsWith(matrix.thing, '-android') run: echo "CARGO_TARGET_$(echo ${{ matrix.target }} | tr \\-a-z _A-Z)_LINKER=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/$(echo ${{ matrix.target }} | sed s/armv7/armv7a/)21-clang++" >> "$GITHUB_ENV" - - if: "!matrix.check_only" - run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} - name: Run tests + - name: Build tests + # We `build` because we want the linker to verify we are cross-compiling correctly for check-only targets. + run: cargo build --target ${{ matrix.target }} --tests ${{ matrix.extra_test_args }} shell: bash env: ${{ matrix.custom_env }} - - if: matrix.check_only - # We `build` because we want the linker to verify we are cross-compiling correctly. - run: cargo build --target ${{ matrix.target }} --tests - name: Build tests + - name: Run tests + if: "!matrix.check_only" + run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} shell: bash env: ${{ matrix.custom_env }} - name: Test boring-sys cargo publish