Przeglądaj źródła

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.
Brad King 2 lat temu
rodzic
commit
f73649823b

+ 2 - 0
.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:

+ 9 - 0
.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

+ 2 - 1
.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
   )