File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 56
56
- rust : nightly
57
57
os : ubuntu-latest
58
58
target : aarch64-unknown-linux-gnu
59
+ - rust : nightly
60
+ os : ubuntu-latest
61
+ target : armv7-unknown-linux-gnueabihf
59
62
# Test 32-bit target that does not have AtomicU64/AtomicI64.
60
63
- rust : nightly
61
64
os : ubuntu-latest
67
70
- name : Install Rust
68
71
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
69
72
run : rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
70
- - name : Install cross
71
- uses : taiki-e/install-action@cross
73
+ - uses : taiki-e/setup-cross-toolchain-action@v1
74
+ with :
75
+ target : ${{ matrix.target }}
72
76
if : matrix.target != ''
73
77
- name : Test
74
78
run : ci/test.sh
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ set -euxo pipefail
3
3
IFS=$' \n\t '
4
4
cd " $( dirname " $0 " ) " /..
5
5
6
+ # shellcheck disable=SC2086
6
7
if [[ -n " ${RUST_TARGET:- } " ]]; then
7
- # If RUST_TARGET is specified, use cross for testing.
8
- cross test --all --target " $RUST_TARGET " --exclude benchmarks -- --test-threads=1
8
+ cargo test --all --target " $RUST_TARGET " --exclude benchmarks ${DOCTEST_XCOMPILE:- } -- --test-threads=1
9
9
10
10
# For now, the non-host target only runs tests.
11
11
exit 0
You can’t perform that action at this time.
0 commit comments