CI: Use an old nightly for all Android targets

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-11-04 19:37:41 +09:00
parent d669d3c9ea
commit fa96301d30
No known key found for this signature in database

View file

@ -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.}"