diff options
author | Brad King <brad.king@kitware.com> | 2023-02-28 17:05:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-28 18:39:52 (GMT) |
commit | f73649823bb5062d7150ffc1e83458de2813d6a5 (patch) | |
tree | a23c01f0981df2a02b665576bac8421b84560846 | |
parent | 0929221ca3641ed890b15fc9abd416a5311138cf (diff) | |
download | CMake-f73649823bb5062d7150ffc1e83458de2813d6a5.zip CMake-f73649823bb5062d7150ffc1e83458de2813d6a5.tar.gz CMake-f73649823bb5062d7150ffc1e83458de2813d6a5.tar.bz2 |
gitlab-ci: Stage unsigned release package artifacts in a dedicated directory
These artifacts need to be manually signed before distribution.
Move them to a dedicated `unsigned/` directory to avoid accidental
distribution without signing.
-rw-r--r-- | .gitlab/artifacts.yml | 2 | ||||
-rw-r--r-- | .gitlab/ci/package_macos.sh | 9 | ||||
-rw-r--r-- | .gitlab/ci/package_windows_build.cmake | 3 |
3 files changed, 13 insertions, 1 deletions
diff --git a/.gitlab/artifacts.yml b/.gitlab/artifacts.yml index 3557596..41f24ed 100644 --- a/.gitlab/artifacts.yml +++ b/.gitlab/artifacts.yml @@ -80,6 +80,8 @@ # Any source packages made. - build/cmake-*.tar.gz - build/cmake-*.zip + # Any unsigned packages made. + - build/unsigned/cmake-* .cmake_junit_artifacts: artifacts: diff --git a/.gitlab/ci/package_macos.sh b/.gitlab/ci/package_macos.sh index f5c178c..7625c5d 100644 --- a/.gitlab/ci/package_macos.sh +++ b/.gitlab/ci/package_macos.sh @@ -1,3 +1,12 @@ cd build cpack -G TGZ cpack -G DragNDrop + +case "$CMAKE_CI_PACKAGE" in + dev) + ;; + *) + mkdir -p unsigned + mv cmake-*-macos*-universal.* unsigned/ + ;; +esac diff --git a/.gitlab/ci/package_windows_build.cmake b/.gitlab/ci/package_windows_build.cmake index e6ff0a6..feb379c 100644 --- a/.gitlab/ci/package_windows_build.cmake +++ b/.gitlab/ci/package_windows_build.cmake @@ -33,8 +33,9 @@ file(GLOB_RECURSE paths_recurse RELATIVE "${CMAKE_CURRENT_BINARY_DIR}" ) # Create a "package" containing the build-tree files needed to build a package. +file(MAKE_DIRECTORY build/unsigned) file(ARCHIVE_CREATE - OUTPUT build/${CPACK_PACKAGE_FILE_NAME}.build.zip + OUTPUT build/unsigned/${CPACK_PACKAGE_FILE_NAME}.build.zip PATHS ${paths} ${paths_recurse} FORMAT zip ) |