diff options
author | Brad King <brad.king@kitware.com> | 2022-11-10 14:22:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-10 17:57:55 (GMT) |
commit | bf2e4a2e857c1e9c9caf73bdf05cc1efc111c196 (patch) | |
tree | 76a4805fafe0d09e81e2fe104d5ba0eb08fbc1ad /.gitlab/os-windows.yml | |
parent | 93ff726114cce9390728d6ff701526f491a14709 (diff) | |
download | CMake-bf2e4a2e857c1e9c9caf73bdf05cc1efc111c196.zip CMake-bf2e4a2e857c1e9c9caf73bdf05cc1efc111c196.tar.gz CMake-bf2e4a2e857c1e9c9caf73bdf05cc1efc111c196.tar.bz2 |
ci: Factor out helper to load ninja into environment on Windows
Diffstat (limited to '.gitlab/os-windows.yml')
-rw-r--r-- | .gitlab/os-windows.yml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/.gitlab/os-windows.yml b/.gitlab/os-windows.yml index 5c6be11..78ebb2e 100644 --- a/.gitlab/os-windows.yml +++ b/.gitlab/os-windows.yml @@ -299,11 +299,9 @@ - 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" - - (& "$pwsh" -File ".gitlab/ci/ninja.ps1") - - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH" + - . .gitlab/ci/ninja-env.ps1 - (& "$env:WIX\bin\light.exe" -help) | Select -First 1 - cmake --version - - ninja --version - cmake -P .gitlab/ci/download_qt.cmake - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\qt\bin;$env:PATH" - cmake -P .gitlab/ci/download_python3.cmake @@ -397,11 +395,10 @@ script: - . .gitlab/ci/env.ps1 - - $pwdpath = $pwd.Path - - (& "$pwsh" -File ".gitlab/ci/ninja.ps1") - - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH" + - . .gitlab/ci/ninja-env.ps1 - Invoke-Expression -Command .gitlab/ci/clang.ps1 - Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1 + - $pwdpath = $pwd.Path - Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\llvm\bin;$env:PATH" - build/install/bin/ctest --output-on-failure -V -S .gitlab/ci/ctest_standalone.cmake |