summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-11-04 19:37:41 +0900
committerYuki Okushi <jtitor@2k36.org>2022-11-04 19:44:22 +0900
commitfa96301d30f3dbfe3b449fbd3be67c738ed8d926 (patch)
treed0247542dba49d7b4d3f185fe261ab6dc9bdf710 /ci
parentd669d3c9eaff0cb116dc2bb7ad19d70b33f1171a (diff)
downloadrust-libc-fa96301d30f3dbfe3b449fbd3be67c738ed8d926.tar.gz
CI: Use an old nightly for all Android targets
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
Diffstat (limited to 'ci')
-rw-r--r--ci/install-rust.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/ci/install-rust.sh b/ci/install-rust.sh
index 2840b7af9f..5b50c624cb 100644
--- a/ci/install-rust.sh
+++ b/ci/install-rust.sh
@@ -10,11 +10,10 @@ if [ -n "$TOOLCHAIN" ]; then
else
# Pin the nightly version as newer nightly versions break CI,
# https://github.com/rust-lang/rust/issues/103673 contains related information.
- if [ "$TARGET" = "x86_64-linux-android" ]; then
- toolchain=nightly-2022-10-09
- else
- toolchain=nightly
- fi
+ case "$TARGET" in
+ *android*) toolchain=nightly-2022-10-09;;
+ *) toolchain=nightly;;
+ esac
fi
if [ "$OS" = "windows" ]; then
: "${TARGET?The TARGET environment variable must be set.}"