File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -211,15 +211,14 @@ jobs:
211
211
- name : Set Android Linker path
212
212
if : endsWith(matrix.thing, '-android')
213
213
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 }}
217
217
shell : bash
218
218
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 }}
223
222
shell : bash
224
223
env : ${{ matrix.custom_env }}
225
224
- name : Test boring-sys cargo publish
You can’t perform that action at this time.
0 commit comments