File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ matrix:
5656 env : BASE_TESTS=true
5757 - os : linux
5858 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
5964 - os : windows
6065 env : CARGO_INCREMENTAL=0 BASE_TESTS=true OS_WINDOWS=true
6166
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
99 cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
1010fi
1111
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[@]} "
1318rustup override set master
You can’t perform that action at this time.
0 commit comments