diff options
author | Brad King <brad.king@kitware.com> | 2022-09-09 19:20:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-12 16:47:42 (GMT) |
commit | 94b27ccc361973cbbb19c715d702369a82efc700 (patch) | |
tree | 7a71eb18857d523beaabcd57c080f4e837fc595c /.gitlab/ci/env.ps1 | |
parent | de32c8ddbe0766fe534e4af20f801b7fd8f72e14 (diff) | |
download | CMake-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/ci/env.ps1')
-rwxr-xr-x | .gitlab/ci/env.ps1 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab/ci/env.ps1 b/.gitlab/ci/env.ps1 index aa7753f..72a8cb8 100755 --- a/.gitlab/ci/env.ps1 +++ b/.gitlab/ci/env.ps1 @@ -1,3 +1,4 @@ +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName if (Test-Path -Path ".gitlab/ci/env_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) { . ".gitlab/ci/env_$env:CMAKE_CONFIGURATION.ps1" } |