diff options
author | Tony Hutter <hutter2@llnl.gov> | 2025-03-26 20:13:33 +0000 |
---|---|---|
committer | Tony Hutter <hutter2@llnl.gov> | 2025-05-27 21:54:34 +0000 |
commit | bc01722a19a6de18fc22dc30373d7ecddbe688f8 (patch) | |
tree | d8aded08921e544bfdc4edd677d84b15bc745a00 | |
parent | 7a008070c0c9e3def17553ef8b442a967279bfe6 (diff) |
-rwxr-xr-x | .github/workflows/scripts/qemu-4-build-vm.sh | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/.github/workflows/scripts/qemu-4-build-vm.sh b/.github/workflows/scripts/qemu-4-build-vm.sh index 9d3cd76ca1ef..7583c4ffa3a3 100755 --- a/.github/workflows/scripts/qemu-4-build-vm.sh +++ b/.github/workflows/scripts/qemu-4-build-vm.sh @@ -301,6 +301,17 @@ function deb_build_and_install() { echo "##[endgroup]" } +function build_tarball { + if [ -n "$REPO" ] ; then + ./autogen.sh + ./configure --with-config=srpm + make dist + mkdir -p /tmp/repo/releases + # The tarball name is based off of 'Version' field in the META file. + mv *.tar.gz /tmp/repo/releases/ + fi +} + # Debug: show kernel cmdline if [ -f /proc/cmdline ] ; then cat /proc/cmdline || true @@ -340,6 +351,13 @@ case "$OS" in ;; fedora*) rpm_build_and_install "$extra" + + # Historically, we've always built the release tarballs on Fedora, since + # there was one instance long ago where we built them on CentOS 7, and they + # didn't work correctly for everyone. + if [ -n "$TARBALL" ] ; then + build_tarball + fi ;; debian*|ubuntu*) deb_build_and_install "$extra" @@ -349,16 +367,6 @@ case "$OS" in ;; esac -# Optionally build tarballs. The tarball's root directory name will be named -# after the current tag, like 'zfs-2.3.0' or 'master'. -if [ -n "$TARBALL" ] ; then - tag="$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)" - git archive --format=tar.gz -o $tag.tar.gz $tag - if [ -n "$REPO" ] ; then - mkdir -p /tmp/repo/releases - cp $tag.tar.gz /tmp/repo/releases - fi -fi # building the zfs module was ok echo 0 > /var/tmp/build-exitcode.txt |