summaryrefslogtreecommitdiff
path: root/.gitlab/ci/package_windows.ps1
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-28 09:33:45 -0500
committerBrad King <brad.king@kitware.com>2023-02-28 13:39:44 -0500
commit0929221ca3641ed890b15fc9abd416a5311138cf (patch)
treee2e993f3238516f69888fcbee72edede8da5753c /.gitlab/ci/package_windows.ps1
parentce2e8253069fa1e5750b800a19f85c6e3b359bd8 (diff)
downloadcmake-0929221ca3641ed890b15fc9abd416a5311138cf.tar.gz
gitlab-ci: Simplify Windows packaging pipeline
In commit 4c7c66dcf5 (gitlab-ci: Add jobs to make Windows x86_64 and i386 packages, 2022-05-19, v3.24.0-rc1~112^2) we used a separate Windows packaging job in nightly packaging pipelines. It did not run in release pipelines, where we need to run the final packaging step manually with signing. Simplify nightly packaging pipelines by running `cpack` at the end of the build job as we do for other platforms. For release packaging pipelines, create an archive of the files needed to build a package, and present this as the built "package" on Windows.
Diffstat (limited to '.gitlab/ci/package_windows.ps1')
-rwxr-xr-x.gitlab/ci/package_windows.ps17
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci/package_windows.ps1 b/.gitlab/ci/package_windows.ps1
new file mode 100755
index 0000000000..9ec2942eaf
--- /dev/null
+++ b/.gitlab/ci/package_windows.ps1
@@ -0,0 +1,7 @@
+if (Test-Path -Path "build/ci_package_info.cmake" -PathType Leaf) {
+ cmake -P .gitlab/ci/package_windows_build.cmake
+} else {
+ cd build
+ cpack -G ZIP
+ cpack -G WIX
+}