From 179711d9376f9ed7f5a6bce421a9431f3c714fd2 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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea99b6bc..5850044e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,14 +218,13 @@ jobs: - name: Set custom env (Unix) if: !startsWith(matrix.os, 'windows') run: echo ${{ join(matrix.custom_env, '\\n') }} >> $GITHUB_ENV - - if: "!matrix.check_only" - run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} - name: Run tests - shell: bash - - if: matrix.check_only + - name: Build tests # We `build` because we want the linker to verify we are cross-compiling correctly. run: cargo build --target ${{ matrix.target }} --tests - name: Build tests + shell: bash + - name: Run tests + if: "!matrix.check_only" + run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} shell: bash - name: Test boring-sys cargo publish # Running `cargo publish --dry-run` tests two things: