File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ matrix:
56
56
env : BASE_TESTS=true
57
57
- os : linux
58
58
env : BASE_TESTS=true
59
+ # We cannot cross-compile on x86_64 toolchain for i686 target,
60
+ # but i686 toolchain could run on x86_64 system.
61
+ - os : linux
62
+ env : HOST_TOOLCHAIN=i686-unknown-linux-gnu
63
+ if : type = pull_request OR branch = master
59
64
- os : windows
60
65
env : CARGO_INCREMENTAL=0 BASE_TESTS=true OS_WINDOWS=true
61
66
Original file line number Diff line number Diff line change @@ -9,5 +9,10 @@ if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/nu
9
9
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
10
10
fi
11
11
12
- rustup-toolchain-install-master -f -n master
12
+ TOOLCHAIN=()
13
+ if [[ -n " $HOST_TOOLCHAIN " ]]; then
14
+ TOOLCHAIN=(' --host' , " $HOST_TOOLCHAIN " )
15
+ fi
16
+
17
+ rustup-toolchain-install-master -f -n master " ${TOOLCHAIN[@]} "
13
18
rustup override set master
You can’t perform that action at this time.
0 commit comments