Skip to content

Commit cf1d71c

Browse files
Auto merge of #149964 - Mark-Simulacrum:ci-channel, r=<try>
Write file with channel to S3
2 parents 430d829 + a8e9bc2 commit cf1d71c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ci/scripts/upload-artifacts.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ if [[ "${DEPLOY-0}" -eq "1" ]] || [[ "${DEPLOY_ALT-0}" -eq "1" ]]; then
2222
mv "${dist_dir}"/* "${upload_dir}"
2323
fi
2424

25+
# We write the release channel into the output so that
26+
# `rustup-toolchain-install-master` or other, similar, tools can automatically
27+
# detect the appropriate name to use for downloading artifacts.
28+
#
29+
# For nightly and beta this isn't strictly necessary as just trying both is
30+
# enough, but stable builds produce artifacts with a version (e.g.,
31+
# rust-src-1.92.0.tar.xz) which can't be easily guessed otherwise.
32+
releaseChannel > "${upload_dir}/channel"
33+
2534
# CPU usage statistics.
2635
cp build/cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
2736

0 commit comments

Comments
 (0)