20
20
# This is ci/actions-templates/windows-builds-template.yaml
21
21
# Do not edit this file in .github/workflows
22
22
build-windows-pr : # job-name skip-master skip-stable
23
- runs-on : windows-latest
23
+ runs-on : ${{ matrix.os || ' windows-latest' }}
24
24
if : ${{ contains('["pull_request", "merge_group"]', github.event_name) }} # skip-master skip-stable
25
25
env :
26
26
RUSTFLAGS : -Ctarget-feature=+crt-static
45
45
arch : x86_64
46
46
mingwdir : mingw64
47
47
gcc : x86_64-w64-mingw32-gcc
48
+ - target : aarch64-pc-windows-msvc
49
+ # Architecture of the rustup build installing Rust this workflow.
50
+ rustup_arch : aarch64
51
+ os : windows-11-arm
52
+ run_tests : YES
48
53
steps :
49
54
- uses : actions/checkout@v4
50
55
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -106,11 +111,13 @@ jobs:
106
111
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
107
112
restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
108
113
- name : Install Rustup using win.rustup.rs
114
+ env :
115
+ RUSTUP_ARCH : ${{ matrix.rustup_arch | 'x86_64' }}
109
116
run : |
110
117
# Disable the download progress bar which can cause perf issues
111
118
$ProgressPreference = "SilentlyContinue"
112
- Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
113
- .\rustup-init.exe -y --default-host=x86_64 -pc-windows-msvc --profile=minimal
119
+ Invoke-WebRequest " https://win.rustup.rs/${env:RUSTUP_ARCH}" -OutFile rustup-init.exe
120
+ .\rustup-init.exe -y --default-host=${env:RUSTUP_ARCH} -pc-windows-msvc --profile=minimal
114
121
del rustup-init.exe
115
122
shell : powershell
116
123
- name : Ensure stable toolchain is up to date
@@ -184,7 +191,7 @@ jobs:
184
191
# This is ci/actions-templates/windows-builds-template.yaml
185
192
# Do not edit this file in .github/workflows
186
193
build-windows-master : # job-name skip-pr skip-stable
187
- runs-on : windows-latest
194
+ runs-on : ${{ matrix.os || ' windows-latest' }}
188
195
if : ${{ (github.event_name == 'push' && github.ref_name == 'master') }} # skip-pr skip-stable
189
196
env :
190
197
RUSTFLAGS : -Ctarget-feature=+crt-static
@@ -209,6 +216,11 @@ jobs:
209
216
arch : x86_64
210
217
mingwdir : mingw64
211
218
gcc : x86_64-w64-mingw32-gcc
219
+ - target : aarch64-pc-windows-msvc
220
+ # Architecture of the rustup build installing Rust this workflow.
221
+ rustup_arch : aarch64
222
+ os : windows-11-arm
223
+ run_tests : YES
212
224
steps :
213
225
- uses : actions/checkout@v4
214
226
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -270,11 +282,13 @@ jobs:
270
282
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
271
283
restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
272
284
- name : Install Rustup using win.rustup.rs
285
+ env :
286
+ RUSTUP_ARCH : ${{ matrix.rustup_arch | 'x86_64' }}
273
287
run : |
274
288
# Disable the download progress bar which can cause perf issues
275
289
$ProgressPreference = "SilentlyContinue"
276
- Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
277
- .\rustup-init.exe -y --default-host=x86_64 -pc-windows-msvc --profile=minimal
290
+ Invoke-WebRequest " https://win.rustup.rs/${env:RUSTUP_ARCH}" -OutFile rustup-init.exe
291
+ .\rustup-init.exe -y --default-host=${env:RUSTUP_ARCH} -pc-windows-msvc --profile=minimal
278
292
del rustup-init.exe
279
293
shell : powershell
280
294
- name : Ensure stable toolchain is up to date
@@ -348,7 +362,7 @@ jobs:
348
362
# This is ci/actions-templates/windows-builds-template.yaml
349
363
# Do not edit this file in .github/workflows
350
364
build-windows-stable : # job-name skip-master skip-pr
351
- runs-on : windows-latest
365
+ runs-on : ${{ matrix.os || ' windows-latest' }}
352
366
if : ${{ github.event_name == 'push' && github.ref_name == 'stable' || github.event_name == 'schedule' }} # skip-pr skip-master
353
367
env :
354
368
RUSTFLAGS : -Ctarget-feature=+crt-static
@@ -375,6 +389,11 @@ jobs:
375
389
arch : x86_64
376
390
mingwdir : mingw64
377
391
gcc : x86_64-w64-mingw32-gcc
392
+ - target : aarch64-pc-windows-msvc
393
+ # Architecture of the rustup build installing Rust this workflow.
394
+ rustup_arch : aarch64
395
+ os : windows-11-arm
396
+ run_tests : YES
378
397
- target : i686-pc-windows-gnu # skip-pr skip-master
379
398
arch : i686 # skip-pr skip-master
380
399
mingwdir : mingw32 # skip-pr skip-master
@@ -440,11 +459,13 @@ jobs:
440
459
key : ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
441
460
restore-keys : ${{ github.base_ref }}-${{ matrix.target }}-${{ matrix.mode }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
442
461
- name : Install Rustup using win.rustup.rs
462
+ env :
463
+ RUSTUP_ARCH : ${{ matrix.rustup_arch | 'x86_64' }}
443
464
run : |
444
465
# Disable the download progress bar which can cause perf issues
445
466
$ProgressPreference = "SilentlyContinue"
446
- Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
447
- .\rustup-init.exe -y --default-host=x86_64 -pc-windows-msvc --profile=minimal
467
+ Invoke-WebRequest " https://win.rustup.rs/${env:RUSTUP_ARCH}" -OutFile rustup-init.exe
468
+ .\rustup-init.exe -y --default-host=${env:RUSTUP_ARCH} -pc-windows-msvc --profile=minimal
448
469
del rustup-init.exe
449
470
shell : powershell
450
471
- name : Ensure stable toolchain is up to date
0 commit comments