Skip to content

Commit

Permalink
Pin nightly version on MIPS
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jul 8, 2023
1 parent a8e31a9 commit c704417
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ci/build.sh
Expand Up @@ -10,13 +10,19 @@ set -ex
: "${TOOLCHAIN?The TOOLCHAIN environment variable must be set.}"
: "${OS?The OS environment variable must be set.}"

RUST=${TOOLCHAIN}
case "$TARGET" in
# FIXME: Unpin once mips' components are available on nightly.
# https://rust-lang.github.io/rustup-components-history/mips-unknown-linux-gnu.html
*mips*) RUST=nightly-2023-07-04;;
*) RUST=${TOOLCHAIN};;
esac

echo "Testing Rust ${RUST} on ${OS}"

if [ "${TOOLCHAIN}" = "nightly" ] ; then
rustup component add rust-src
fi
case "$RUST" in
*nightly*) rustup component add rust-src;;
*) ;;
esac

test_target() {
BUILD_CMD="${1}"
Expand Down
3 changes: 3 additions & 0 deletions ci/install-rust.sh
Expand Up @@ -12,6 +12,9 @@ else
# https://github.com/rust-lang/rust/issues/103673 contains related information.
case "$TARGET" in
*android*) toolchain=nightly-2022-10-09;;
# FIXME: Unpin once mips' components are available on nightly.
# https://rust-lang.github.io/rustup-components-history/mips-unknown-linux-gnu.html
*mips*) toolchain=nightly-2023-07-04;;
*) toolchain=nightly;;
esac
fi
Expand Down

0 comments on commit c704417

Please sign in to comment.