summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/qt-env.ps1
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-11 17:03:23 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-11 20:05:30 (GMT)
commit09c1b1db078022096d9b671ebd5ad6bb7a4b52fd (patch)
treee97c03be5dc60a1eab9bb42c4aecd288f6606908 /.gitlab/ci/qt-env.ps1
parent61ebd7d083430ed55ad263b96e73efd91dcfa2ab (diff)
downloadCMake-09c1b1db078022096d9b671ebd5ad6bb7a4b52fd.zip
CMake-09c1b1db078022096d9b671ebd5ad6bb7a4b52fd.tar.gz
CMake-09c1b1db078022096d9b671ebd5ad6bb7a4b52fd.tar.bz2
gitlab-ci: Add windows-arm64 native jobs for Ninja and VS
Add Windows ARM64 native CI jobs to build and test with Ninja, and to test with VS. Issue: #23624
Diffstat (limited to '.gitlab/ci/qt-env.ps1')
-rwxr-xr-x.gitlab/ci/qt-env.ps114
1 files changed, 10 insertions, 4 deletions
diff --git a/.gitlab/ci/qt-env.ps1 b/.gitlab/ci/qt-env.ps1
index c087a59..7eff55f 100755
--- a/.gitlab/ci/qt-env.ps1
+++ b/.gitlab/ci/qt-env.ps1
@@ -1,4 +1,10 @@
-$pwdpath = $pwd.Path
-cmake -P .gitlab/ci/download_qt.cmake
-Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
-qmake -v
+if ("$env:PROCESSOR_ARCHITECTURE" -eq "AMD64") {
+ $pwdpath = $pwd.Path
+ cmake -P .gitlab/ci/download_qt.cmake
+ Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH"
+ qmake -v
+} elseif ("$env:PROCESSOR_ARCHITECTURE" -eq "ARM64") {
+ # Qt host tools are not yet available natively on windows-arm64.
+} else {
+ throw ('unknown PROCESSOR_ARCHITECTURE: ' + "$env:PROCESSOR_ARCHITECTURE")
+}