Skip to content

Commit b03b57c

Browse files
committed
jenkins: add ARM64 Windows
PR-URL: #2408 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Ash Cripps <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 06c83e7 commit b03b57c

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

jenkins/scripts/VersionSelectorScript.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ def buildExclusions = [
6565
[ /vcbt2015(-\w+)?$/, testType, gte(10) ],
6666
[ /vs2017(-\w+)?$/, testType, ltGte(8, 15) ],
6767
[ /vs2019(-\w+)?$/, testType, lt(13) ],
68-
[ /vs2015-x86$/, testType, gte(10) ], // compile x86 only once
68+
[ /vs2015-x86$/, testType, gte(10) ], // compile arm64/x86 only once
6969
[ /vs2017-x86$/, testType, ltGte(10, 14) ],
7070
[ /vs2019-x86$/, testType, lt(14) ],
71+
[ /vs2019-arm64$/, testType, lt(14) ],
7172
// VS versions supported to build add-ons
7273
[ /vs2013-COMPILED_BY/, testType, gte(9) ],
7374
[ /vs2015-COMPILED_BY/, testType, noVer ],
@@ -164,5 +165,12 @@ combinations.each{
164165
return
165166
}
166167
}
168+
// Run tests on Windows ARM64 only if explicitly requested
169+
if (builderLabel =~ /^win.*COMPILED_BY.*-arm64$/) {
170+
if (!parameters['RUN_ARM64_TESTS'].toString().equalsIgnoreCase("true")){
171+
println "Skipping $builderLabel because RUN_ARM64_TESTS is not selected"
172+
return
173+
}
174+
}
167175
result['nodes'].add(it)
168176
}

jenkins/scripts/windows/compile.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_mai
1818
)
1919

2020
:: Call vcbuild
21-
if "%nodes:~-4%" == "-x86" (
21+
if "%nodes:~-6%" == "-arm64" (
22+
:: Building MSI is not yet supported for ARM64
23+
set "VCBUILD_EXTRA_ARGS=arm64 release"
24+
) else if "%nodes:~-4%" == "-x86" (
2225
set "VCBUILD_EXTRA_ARGS=x86 %VCBUILD_EXTRA_ARGS%"
2326
) else (
2427
set "VCBUILD_EXTRA_ARGS=x64 %VCBUILD_EXTRA_ARGS%"

0 commit comments

Comments
 (0)