From 46433e360dcbe89d49717fe6c7842ed7764c25a6 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Mon, 13 Nov 2023 21:35:45 -0600 Subject: [PATCH] Swap build and run order; always build --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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