]> granicus.if.org Git - graphviz/commitdiff
package DEBs as consolidated tarballs
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Nov 2021 04:39:13 +0000 (20:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 12 Nov 2021 01:25:15 +0000 (17:25 -0800)
This results in the following release artifacts being combined:

  * Ubuntu 18.04
    * 13 DEBs → 1 tarball
    * 10 debug DEBs → 1 tarball
  * Ubuntu 20.04
    * 13 DEBs → 1 tarball
    * 10 debug DEBs → 1 tarball
  * Ubuntu 20.04 debug
    * 13 DEBs → 1 tarball
    * 10 debug DEBs → 1 tarball
  * Ubuntu 21.04
    * 13 DEBs → 1 tarball
    * 10 debug DEBs → 1 tarball
  * Ubuntu 21.10
    * 13 DEBs → 1 tarball
    * 10 debug DEBs → 1 tarball

This drops the total number of Graphviz release artifacts from 168 to 63. This
is still not below the 50 artifact ceiling we need to hit, but this is
significant progress.

Related to #2147.

.gitlab-ci.yml
ci/build.sh
ci/install-packages.sh

index 214ff9bef29c3d9a158f21bd91c8b8bd31f7a924..a307f5a4ca8df49f52739b0a4dc0e1d0f7f70a2a 100644 (file)
@@ -68,6 +68,7 @@ portable-source:
         when: on_success
         expire_in: 1 week
         paths:
+            - Packages/*/*/*/*.tar.xz
             - Packages/*/*/*/*deb
             - Metadata/*/*/configure.log
             - GRAPHVIZ_VERSION
index 2ce64463f096a59f0d9c60522faf2a4141e7b587..c713dbdf4c0c78ff5516a84dabed1f4cbaa3f134 100755 (executable)
@@ -67,8 +67,8 @@ else
         if [ "${ID_LIKE:-}" = "debian" ]; then
             tar xfz graphviz-${GV_VERSION}.tar.gz
             (cd graphviz-${GV_VERSION}; fakeroot make -f debian/rules binary) | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
-            mv *.deb ${DIR}/os/
-            mv *.ddeb ${DIR}/debug/
+            tar cf - *.deb | xz -9 -c - >${DIR}/os/graphviz-${GV_VERSION}-debs.tar.xz
+            tar cf - *.ddeb | xz -9 -c - >${DIR}/debug/graphviz-${GV_VERSION}-ddebs.tar.xz
         else
             rm -rf ${HOME}/rpmbuild
             rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
index 590bbba373cf5ed1cc1259e06db5b4919564eaf7..e70370aab585ced8dc24bafb10204269104d56a7 100755 (executable)
@@ -41,9 +41,10 @@ if [ "${build_system}" = "cmake" ]; then
     fi
 else
     if [ "${ID_LIKE}" = "debian" ]; then
-        apt install ./${DIR}/os/libgraphviz4_${GV_VERSION}-1_amd64.deb
-        apt install ./${DIR}/os/libgraphviz-dev_${GV_VERSION}-1_amd64.deb
-        apt install ./${DIR}/os/graphviz_${GV_VERSION}-1_amd64.deb
+        tar xf ${DIR}/os/graphviz-${GV_VERSION}-debs.tar.xz
+        apt install ./libgraphviz4_${GV_VERSION}-1_amd64.deb
+        apt install ./libgraphviz-dev_${GV_VERSION}-1_amd64.deb
+        apt install ./graphviz_${GV_VERSION}-1_amd64.deb
     elif [ "${ID}" = "Darwin" ]; then
         tar xf ${DIR}/os/graphviz-${GV_VERSION}-${ARCH}.tar.gz
         cp -rp build/* /usr/local