From 2f62df492b657efd73c060f54152633c1a3e248e Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Fri, 3 Jun 2022 16:35:41 -0700 Subject: [PATCH] Build tests even for cross-compiling --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e11712eb..a26e5640 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,8 +188,9 @@ jobs: run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} name: Run tests - if: matrix.check_only - run: cargo check --target ${{ matrix.target }} --all-targets - name: Check 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 - name: Test boring-sys cargo publish # Running `cargo publish --dry-run` tests two things: #