mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'ci-windows'
3d4073b129gitlab-ci: Try upstream ninja development branch in a Windows nightly jobbbb2664547gitlab-ci: Add wix, cmake, and ninja to PATH incrementally on Windows658009b6feci: Fix vcvarsall.ps1 environment variable lookup Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6732
This commit is contained in:
@@ -742,6 +742,8 @@ test:windows-vs2022-x64-ninja:
|
||||
- build:windows-vs2022-x64-ninja
|
||||
needs:
|
||||
- build:windows-vs2022-x64-ninja
|
||||
variables:
|
||||
CMAKE_CI_JOB_NIGHTLY_NINJA: "true"
|
||||
|
||||
test:windows-vs2022-x64:
|
||||
extends:
|
||||
|
||||
9
.gitlab/ci/ninja-nightly.ps1
Executable file
9
.gitlab/ci/ninja-nightly.ps1
Executable file
@@ -0,0 +1,9 @@
|
||||
$erroractionpreference = "stop"
|
||||
|
||||
Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
|
||||
Set-Location -Path ".gitlab"
|
||||
git clone https://github.com/ninja-build/ninja.git ninja-src
|
||||
cmake -S ninja-src -B ninja-src/build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build ninja-src/build --target ninja
|
||||
Move-Item -Path "ninja-src\build\ninja.exe" -Destination . -Force
|
||||
Remove-Item "ninja-src" -Recurse -Force
|
||||
@@ -1,5 +1,10 @@
|
||||
$erroractionpreference = "stop"
|
||||
|
||||
if ("$env:CMAKE_CI_JOB_NIGHTLY_NINJA" -eq "true" -And "$env:CMAKE_CI_NIGHTLY" -eq "true") {
|
||||
& .gitlab/ci/ninja-nightly.ps1
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$version = "1.10.2"
|
||||
$sha256sum = "BBDE850D247D2737C5764C927D1071CBB1F1957DCABDA4A130FA8547C12C695F"
|
||||
$filename = "ninja-win"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
$erroractionpreference = "stop"
|
||||
|
||||
cmd /c "`"$env:VCVARSALL`" $VCVARSPLATFORM -vcvars_ver=$VCVARSVERSION & set" |
|
||||
cmd /c "`"$env:VCVARSALL`" $env:VCVARSPLATFORM -vcvars_ver=$env:VCVARSVERSION & set" |
|
||||
foreach {
|
||||
if ($_ -match "=") {
|
||||
$v = $_.split("=")
|
||||
|
||||
@@ -151,13 +151,14 @@
|
||||
## Windows-specific scripts
|
||||
|
||||
.before_script_windows: &before_script_windows
|
||||
- Invoke-Expression -Command .gitlab/ci/wix.ps1
|
||||
- Invoke-Expression -Command .gitlab/ci/cmake.ps1
|
||||
- Invoke-Expression -Command .gitlab/ci/ninja.ps1
|
||||
- $pwdpath = $pwd.Path
|
||||
- powershell -File ".gitlab/ci/wix.ps1"
|
||||
- Set-Item -Force -Path "env:WIX" -Value "$pwdpath\.gitlab\wix"
|
||||
- powershell -File ".gitlab/ci/cmake.ps1"
|
||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
||||
- powershell -File ".gitlab/ci/ninja.ps1"
|
||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH"
|
||||
- (& "$env:WIX\bin\light.exe" -help) | Select -First 1
|
||||
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$pwdpath\.gitlab\cmake\bin;$env:PATH"
|
||||
- cmake --version
|
||||
- ninja --version
|
||||
- cmake -P .gitlab/ci/download_qt.cmake
|
||||
|
||||
Reference in New Issue
Block a user