File tree 4 files changed +50
-5
lines changed 4 files changed +50
-5
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ jobs:
145
145
- name : show the current environment
146
146
run : src/ci/scripts/dump-environment.sh
147
147
148
+ - name : install rust
149
+ run : src/ci/scripts/install-rust.sh
150
+
148
151
- name : install awscli
149
152
run : src/ci/scripts/install-awscli.sh
150
153
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ runners:
49
49
os : windows-2025-8core-32gb
50
50
<< : *base-job
51
51
52
+ - &job-windows-aarch64
53
+ os : windows-11-arm
54
+ << : *base-job
55
+
52
56
- &job-aarch64-linux
53
57
# Free some disk space to avoid running out of space during the build.
54
58
free_disk : true
@@ -509,6 +513,19 @@ auto:
509
513
SCRIPT : make ci-msvc-ps1
510
514
<< : *job-windows
511
515
516
+ # aarch64-msvc is split into two jobs to run tests in parallel.
517
+ - name : aarch64-msvc-1
518
+ env :
519
+ RUST_CONFIGURE_ARGS : --build=aarch64-pc-windows-msvc
520
+ SCRIPT : make ci-msvc-py
521
+ << : *job-windows-aarch64
522
+
523
+ - name : aarch64-msvc-2
524
+ env :
525
+ RUST_CONFIGURE_ARGS : --build=aarch64-pc-windows-msvc
526
+ SCRIPT : make ci-msvc-ps1
527
+ << : *job-windows-aarch64
528
+
512
529
# x86_64-msvc-ext is split into multiple jobs to run tests in parallel.
513
530
- name : x86_64-msvc-ext1
514
531
env :
@@ -602,14 +619,14 @@ auto:
602
619
- name : dist-aarch64-msvc
603
620
env :
604
621
RUST_CONFIGURE_ARGS : >-
605
- --build=x86_64 -pc-windows-msvc
622
+ --build=aarch64 -pc-windows-msvc
606
623
--host=aarch64-pc-windows-msvc
607
624
--target=aarch64-pc-windows-msvc,arm64ec-pc-windows-msvc
608
625
--enable-full-tools
609
626
--enable-profiler
610
627
SCRIPT : python x.py dist bootstrap --include-default-paths
611
628
DIST_REQUIRE_ALL_TOOLS : 1
612
- << : *job-windows
629
+ << : *job-windows-aarch64
613
630
614
631
- name : dist-i686-mingw
615
632
env :
Original file line number Diff line number Diff line change @@ -56,9 +56,19 @@ elif isWindows && ! isKnownToBeMingwBuild; then
56
56
57
57
mkdir -p citools/clang-rust
58
58
cd citools
59
- retry curl -f " ${MIRRORS_BASE} /LLVM-${LLVM_VERSION} -win64.exe" \
60
- -o " LLVM-${LLVM_VERSION} -win64.exe"
61
- 7z x -oclang-rust/ " LLVM-${LLVM_VERSION} -win64.exe"
59
+
60
+ if [[ " ${CI_JOB_NAME} " = * aarch64* ]]; then
61
+ suffix=woa64
62
+
63
+ # On Arm64, the Ring crate requires that Clang be on the PATH.
64
+ # https://github.com/briansmith/ring/blob/main/BUILDING.md
65
+ ciCommandAddPath " $( cygpath -m " $( pwd) /clang-rust/bin" ) "
66
+ else
67
+ suffix=win64
68
+ fi
69
+ retry curl -f " ${MIRRORS_BASE} /LLVM-${LLVM_VERSION} -${suffix} .exe" \
70
+ -o " LLVM-${LLVM_VERSION} -${suffix} .exe"
71
+ 7z x -oclang-rust/ " LLVM-${LLVM_VERSION} -${suffix} .exe"
62
72
ciCommandSetEnv RUST_CONFIGURE_ARGS \
63
73
" ${RUST_CONFIGURE_ARGS} --set llvm.clang-cl=$( pwd) /clang-rust/bin/clang-cl.exe"
64
74
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # The Arm64 Windows Runner does not have Rust already installed
4
+ # https://github.com/actions/partner-runner-images/issues/77
5
+
6
+ set -euo pipefail
7
+ IFS=$' \n\t '
8
+
9
+ source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
10
+
11
+ if [[ " ${CI_JOB_NAME} " = * aarch64* ]] && isWindows; then
12
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | \
13
+ sh -s -- -y -q --default-host aarch64-pc-windows-msvc
14
+ ciCommandAddPath " ${USERPROFILE} /.cargo/bin"
15
+ fi
You can’t perform that action at this time.
0 commit comments