diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2025-04-28 12:07:30 -0700 |
|---|---|---|
| committer | Daniel Paoliello <danpao@microsoft.com> | 2025-06-13 15:27:35 -0700 |
| commit | 295378729b782d7ec45588af136a0d7c7305e8df (patch) | |
| tree | b3e6a3657fd449a6223539507ba45f26b236d4b0 /src/ci/scripts/install-rust.sh | |
| parent | 8da623945f83933dd38644d5745532ee032e855b (diff) | |
| download | rust-295378729b782d7ec45588af136a0d7c7305e8df.tar.gz rust-295378729b782d7ec45588af136a0d7c7305e8df.zip | |
DRAFT: Add an aarch64-msvc build running on ARM64 Windows
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 |
