File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ mkdir "$CACHE_DIR"
3131
3232# On the beta channel we'll be automatically calculating the prerelease version
3333# via the git history, so unshallow our shallow clone from CI.
34- if grep -q RUST_RELEASE_CHANNEL= beta src/ci/run.sh ; then
34+ if [ " $( releaseChannel ) " = " beta" ] ; then
3535 git fetch origin --unshallow beta master
3636fi
3737
Original file line number Diff line number Diff line change 6565# Always set the release channel for bootstrap; this is normally not important (i.e., only dist
6666# builds would seem to matter) but in practice bootstrap wants to know whether we're targeting
6767# master, beta, or stable with a build to determine whether to run some checks (notably toolstate).
68- if [[ -z " ${RUST_CI_OVERRIDE_RELEASE_CHANNEL+x} " ]]; then
69- export RUST_RELEASE_CHANNEL=" $( cat " ${ci_dir} /channel" ) "
70- else
71- export RUST_RELEASE_CHANNEL=" ${RUST_CI_OVERRIDE_RELEASE_CHANNEL} "
72- fi
68+ export RUST_RELEASE_CHANNEL=$( releaseChannel)
7369RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL "
7470
7571if [ " $DEPLOY$DEPLOY_ALT " = " 1" ]; then
Original file line number Diff line number Diff line change @@ -141,3 +141,11 @@ function ciCommandSetEnv {
141141 exit 1
142142 fi
143143}
144+
145+ function releaseChannel {
146+ if [[ -z " ${RUST_CI_OVERRIDE_RELEASE_CHANNEL+x} " ]]; then
147+ cat " ${ci_dir} /channel"
148+ else
149+ echo $RUST_CI_OVERRIDE_RELEASE_CHANNEL
150+ fi
151+ }
You can’t perform that action at this time.
0 commit comments