summaryrefslogtreecommitdiffstats
path: root/.gitlab/os-windows.yml
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-09 19:20:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-12 16:47:42 (GMT)
commit94b27ccc361973cbbb19c715d702369a82efc700 (patch)
tree7a71eb18857d523beaabcd57c080f4e837fc595c /.gitlab/os-windows.yml
parentde32c8ddbe0766fe534e4af20f801b7fd8f72e14 (diff)
downloadCMake-94b27ccc361973cbbb19c715d702369a82efc700.zip
CMake-94b27ccc361973cbbb19c715d702369a82efc700.tar.gz
CMake-94b27ccc361973cbbb19c715d702369a82efc700.tar.bz2
ci: add support for gitlab-runner 'shell = pwsh' executor
Run powershell child scripts using the same powershell tool as the parent script.
Diffstat (limited to '.gitlab/os-windows.yml')
-rw-r--r--.gitlab/os-windows.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab/os-windows.yml b/.gitlab/os-windows.yml
index b4aa0eb..5c6be11 100644
--- a/.gitlab/os-windows.yml
+++ b/.gitlab/os-windows.yml
@@ -295,11 +295,11 @@
.before_script_windows: &before_script_windows
- . .gitlab/ci/env.ps1
- $pwdpath = $pwd.Path
- - powershell -File ".gitlab/ci/wix.ps1"
+ - (& "$pwsh" -File ".gitlab/ci/wix.ps1")
- Set-Item -Force -Path "env:WIX" -Value "$pwdpath\.gitlab\wix"
- - powershell -File ".gitlab/ci/cmake.ps1"
+ - (& "$pwsh" -File ".gitlab/ci/cmake.ps1")
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\cmake\bin;$env:PATH"
- - powershell -File ".gitlab/ci/ninja.ps1"
+ - (& "$pwsh" -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
- cmake --version
@@ -398,7 +398,7 @@
script:
- . .gitlab/ci/env.ps1
- $pwdpath = $pwd.Path
- - powershell -File ".gitlab/ci/ninja.ps1"
+ - (& "$pwsh" -File ".gitlab/ci/ninja.ps1")
- Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab;$env:PATH"
- Invoke-Expression -Command .gitlab/ci/clang.ps1
- Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1