diff options
author | Brad King <brad.king@kitware.com> | 2023-02-28 14:59:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-28 15:12:03 (GMT) |
commit | 05531a7c4e499847b7d174fb7697e840c223bc98 (patch) | |
tree | 9b1eb901b6ba36b964ad8c608806f7c4e50adbd6 /.gitlab/ci/post_build.ps1 | |
parent | 5ab92d8e71a13a6b81ad7a5b7d635f8af8e5c31d (diff) | |
download | CMake-05531a7c4e499847b7d174fb7697e840c223bc98.zip CMake-05531a7c4e499847b7d174fb7697e840c223bc98.tar.gz CMake-05531a7c4e499847b7d174fb7697e840c223bc98.tar.bz2 |
gitlab-ci: add pre-build and post-build steps to Windows
Apply the approach from commit 372ce5bffe (ci: add pre-build and
post-build steps to Linux, 2022-12-05, v3.26.0-rc1~225^2~1) to
build jobs on Windows.
Diffstat (limited to '.gitlab/ci/post_build.ps1')
-rwxr-xr-x | .gitlab/ci/post_build.ps1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/ci/post_build.ps1 b/.gitlab/ci/post_build.ps1 new file mode 100755 index 0000000..fbd8ae8 --- /dev/null +++ b/.gitlab/ci/post_build.ps1 @@ -0,0 +1,4 @@ +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName +if (Test-Path -Path ".gitlab/ci/post_build_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) { + . ".gitlab/ci/post_build_$env:CMAKE_CONFIGURATION.ps1" +} |