about summary refs log tree commit diff
path: root/src/ci/run.sh
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-16 08:52:50 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-18 22:44:42 -0500
commitcbd1e73124dbd35cde4b5cafff127a4e54fef9fe (patch)
tree31ffd00064634f93486c947375414771e17233f2 /src/ci/run.sh
parenta605441e049f0b6d5f7715b94b8ac4662fd7fcf6 (diff)
downloadrust-cbd1e73124dbd35cde4b5cafff127a4e54fef9fe.tar.gz
rust-cbd1e73124dbd35cde4b5cafff127a4e54fef9fe.zip
Set release channel on non-dist builders
Toolstate publication only runs if the channel is "nightly" and
previously the toolstate builders did not know that the channel was
nightly (since they are not dist builders).

A look through bootstrap seems to indicate that nothing should directly
depend on the channel being set to `-dev` on the test builders, though
this may cause some problems with UI tests (if for some reason they're
dumping the channel into stderr), but we cannot find evidence of such so
hopefully this is fine.
Diffstat (limited to 'src/ci/run.sh')
-rwxr-xr-xsrc/ci/run.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 38d1d2baf25..73c3a964f53 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -44,8 +44,13 @@ fi
 # FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
 #        either automatically or manually.
 export RUST_RELEASE_CHANNEL=nightly
+
+# Always set the release channel for bootstrap; this is normally not important (i.e., only dist
+# builds would seem to matter) but in practice bootstrap wants to know whether we're targeting
+# master, beta, or stable with a build to determine whether to run some checks (notably toolstate).
+RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
+
 if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
-  RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.remap-debuginfo"
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level-std=1"