Skip to content

Commit 789b6a2

Browse files
committed
Swap build and run order; always build
1 parent a6e882e commit 789b6a2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,14 @@ jobs:
211211
- name: Set Android Linker path
212212
if: endsWith(matrix.thing, '-android')
213213
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"
214-
- if: "!matrix.check_only"
215-
run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }}
216-
name: Run tests
214+
- name: Build tests
215+
# We `build` because we want the linker to verify we are cross-compiling correctly for check-only targets.
216+
run: cargo build --target ${{ matrix.target }} --tests ${{ matrix.extra_test_args }}
217217
shell: bash
218218
env: ${{ matrix.custom_env }}
219-
- if: matrix.check_only
220-
# We `build` because we want the linker to verify we are cross-compiling correctly.
221-
run: cargo build --target ${{ matrix.target }} --tests
222-
name: Build tests
219+
- name: Run tests
220+
if: "!matrix.check_only"
221+
run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }}
223222
shell: bash
224223
env: ${{ matrix.custom_env }}
225224
- name: Test boring-sys cargo publish

0 commit comments

Comments
 (0)