mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
ci: Factor out location of cmake in Qt download script
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
if ($cmake -eq $null) {
|
||||
throw ('$cmake powershell variable not set ')
|
||||
}
|
||||
if ("$env:PROCESSOR_ARCHITECTURE" -eq "AMD64") {
|
||||
$pwdpath = $pwd.Path
|
||||
cmake -P .gitlab/ci/download_qt.cmake
|
||||
& $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") {
|
||||
|
||||
@@ -366,6 +366,7 @@
|
||||
- Set-Item -Force -Path "env:WIX" -Value "$pwdpath\.gitlab\wix"
|
||||
- (& "$pwsh" -File ".gitlab/ci/cmake.ps1")
|
||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
||||
- $cmake = "cmake"
|
||||
- . .gitlab/ci/ninja-env.ps1
|
||||
- (& "$env:WIX\bin\light.exe" -help) | Select -First 1
|
||||
- cmake --version
|
||||
|
||||
Reference in New Issue
Block a user