Taking the previous approach further, this results in the following release
artifacts being combined:
* CentOS 7
* 1 source RPM, 2 tarballs → 1 tarball
* CentOS 8
* 1 source RPM, 2 tarballs → 1 tarball
* Fedora 33
* 1 source RPM, 2 tarballs → 1 tarball
* Fedora 34
* 1 source RPM, 2 tarballs → 1 tarball
This drops the total number of Graphviz release artifacts from 176 to 168. This
is still not below the 50 artifact ceiling we need to hit, but this is progress.
Note that this removes the `os`/`debug`/`source` hierarchy in the packaging
directories for these artifacts, now that all three of these are packaged into a
single tarball. The `os` hierarchy remains for the CMake-produced RPM for these
platforms.
Related to #2147.
when: on_success
expire_in: 1 week
paths:
- - Packages/*/*/*/*.tar.xz
+ - Packages/*/*/*.tar.xz
- Packages/*/*/*/*.rpm
- Metadata/*/*/configure.log
- GRAPHVIZ_VERSION
else
rm -rf ${HOME}/rpmbuild
rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log)
- mv ${HOME}/rpmbuild/SRPMS/*.src.rpm ${DIR}/source/
pushd ${HOME}/rpmbuild/RPMS
- mv */*debuginfo*rpm ./
- tar cf - *debuginfo*rpm | xz -9 -c - >${DIR}/debug/graphviz-${GV_VERSION}-debuginfo-rpms.tar.xz
- find . -name "*debuginfo*rpm" -delete
mv */*.rpm ./
- tar cf - *.rpm | xz -9 -c - >${DIR}/os/graphviz-${GV_VERSION}-rpms.tar.xz
+ tar cf - *.rpm | xz -9 -c - >${DIR}/graphviz-${GV_VERSION}-rpms.tar.xz
popd
fi
elif [[ "${OSTYPE}" =~ "darwin" ]]; then
tar xf ${DIR}/os/graphviz-${GV_VERSION}-${ARCH}.tar.gz
cp -rp build/* /usr/local
else
- tar xvf ${DIR}/os/graphviz-${GV_VERSION}-rpms.tar.xz
+ tar xvf ${DIR}/graphviz-${GV_VERSION}-rpms.tar.xz
rpm --install --force \
graphviz-${GV_VERSION}*.rpm \
graphviz-libs-${GV_VERSION}*.rpm \