diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-10 20:20:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-10 20:20:37 -0400 |
| commit | 6debe036342dde45d17bfae6d7cee4726a782081 (patch) | |
| tree | 7eb26ac1b1a6b754c907989cbb50292b081c5f4d /src/ci/scripts/install-rust.sh | |
| parent | 2a023bf80a6fbd6a06d5460a34eb247b986286ed (diff) | |
| parent | 295378729b782d7ec45588af136a0d7c7305e8df (diff) | |
| download | rust-6debe036342dde45d17bfae6d7cee4726a782081.tar.gz rust-6debe036342dde45d17bfae6d7cee4726a782081.zip | |
Rollup merge of #140136 - dpaoliello:arm64winci, r=Kobzol
Add an aarch64-msvc build running on ARM64 Windows Resurrecting rust-lang/rust#126341 Per <https://github.com/rust-lang/rfcs/pull/3817> we intend to promote `aarch64-pc-windows-msvc` to Tier 1. As part of that work, we are adding a pre-merge CI job to validate that changes do not break this target. Additionally, for consistency, the `dist-aarch64-msvc` job will also be run on Arm64 Windows runners. r? ``@Kobzol`` try-job: `*aarch64-msvc*`
Diffstat (limited to 'src/ci/scripts/install-rust.sh')
| -rwxr-xr-x | src/ci/scripts/install-rust.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ci/scripts/install-rust.sh b/src/ci/scripts/install-rust.sh new file mode 100755 index 00000000000..e4aee98c9fb --- /dev/null +++ b/src/ci/scripts/install-rust.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# The Arm64 Windows Runner does not have Rust already installed +# https://github.com/actions/partner-runner-images/issues/77 + +set -euo pipefail +IFS=$'\n\t' + +source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" + +if [[ "${CI_JOB_NAME}" = *aarch64* ]] && isWindows; then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ + sh -s -- -y -q --default-host aarch64-pc-windows-msvc + ciCommandAddPath "${USERPROFILE}/.cargo/bin" +fi |
