From 80a13d75c1d03f6c026e0976b9efc7668790d730 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 7 Sep 2026 21:40:34 -0600 Subject: [PATCH] ci(release): fix aarch64 tarball naming and gentoo metadata validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two release-pipeline fixes surfaced by the 2.1.0 tag: - release-linux-aarch64: the GUI and qbzd tarballs (and their internal dirs) were named with DEB_ARCH (arm64), but every source consumer — release-aur, the Gentoo binary ebuilds, the Flathub manifest — fetches them as aarch64, which matches the rpm/AppImage suffix. They 404'd on the tag and needed a manual re-upload. Name the tarballs and dirs with ARCH (aarch64); the .deb files keep DEB_ARCH (arm64), the Debian convention. - release-gentoo: the metadata validation step calls xmllint, which is not on the runner by default; install libxml2-utils before using it. cc --- .github/workflows/release-gentoo.yml | 4 ++++ .github/workflows/release-linux-aarch64.yml | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-gentoo.yml b/.github/workflows/release-gentoo.yml index de973263d..78dbe4ece 100644 --- a/.github/workflows/release-gentoo.yml +++ b/.github/workflows/release-gentoo.yml @@ -203,6 +203,10 @@ jobs: - name: Validate generated overlay metadata run: | set -euo pipefail + # xmllint ships in libxml2-utils, not on the runner by default. + if ! command -v xmllint >/dev/null; then + sudo apt-get update && sudo apt-get install -y libxml2-utils + fi for package in qbz-bin qbz qbzd-bin qbzd; do directory="/tmp/qbz-overlay/media-sound/${package}" bash -n "${directory}"/*.ebuild diff --git a/.github/workflows/release-linux-aarch64.yml b/.github/workflows/release-linux-aarch64.yml index 2c47d72ba..7a37e6507 100644 --- a/.github/workflows/release-linux-aarch64.yml +++ b/.github/workflows/release-linux-aarch64.yml @@ -4,17 +4,17 @@ # Rewritten 2026-08-25 for the Slint -> Qt frontend switch. Pattern is still # build once, package many — but the build is the shared build-qt-linux.yml # (workflow_call) and it yields TWO payloads: -# * the bare binary -> qbz_${VERSION}_arm64.tar.gz (AUR / Gentoo / Flathub +# * the bare binary -> qbz_${VERSION}_aarch64.tar.gz (AUR / Gentoo / Flathub # repack: ecosystems that provide Qt >= 6.8 themselves) # * the AppDir (Qt bundled, self-contained) -> deb / rpm / AppImage, so # distros without a usable Qt (Ubuntu 24.04 = Qt 6.4) keep working. # # CONTRACT (do not break): the release must keep publishing -# qbz_${VERSION}_arm64.tar.gz (dir qbz_${VERSION}_arm64/{qbz, qbzd, LICENSE, licenses/, qbz.desktop, +# qbz_${VERSION}_aarch64.tar.gz (dir qbz_${VERSION}_aarch64/{qbz, qbzd, LICENSE, licenses/, qbz.desktop, # com.blitzfc.qbz.metainfo.xml, qbzd.service, # completions/, icons/hicolor/...}) # QBZ_${VERSION}_arm64.deb / QBZ-${VERSION}-1.aarch64.rpm / QBZ_${VERSION}_arm64.AppImage -# qbzd_${VERSION}_arm64.deb / qbzd-${VERSION}-1.aarch64.rpm / qbzd-${VERSION}-linux-arm64.tar.gz +# qbzd_${VERSION}_arm64.deb / qbzd-${VERSION}-1.aarch64.rpm / qbzd-${VERSION}-linux-aarch64.tar.gz # — release-aur.yml, release-gentoo.yml, qbz-apt, qbz-rpm, the updater # manifest and the website consume these names. # @@ -277,7 +277,7 @@ jobs: run: | # CONTRACT: release-aur.yml, the Gentoo binary ebuild, qbz-apt and # the website hard-code this name and internal layout. - TARBALL_DIR="qbz_${VERSION}_${DEB_ARCH}" + TARBALL_DIR="qbz_${VERSION}_${ARCH}" mkdir -p "tarball-staging/${TARBALL_DIR}/icons/hicolor"/{32x32,48x48,64x64,128x128,256x256,512x512}/apps cp qbz "tarball-staging/${TARBALL_DIR}/qbz" chmod +x "tarball-staging/${TARBALL_DIR}/qbz" @@ -298,12 +298,12 @@ jobs: cp qbzd.bash "tarball-staging/${TARBALL_DIR}/completions/qbzd.bash" cp qbzd.zsh "tarball-staging/${TARBALL_DIR}/completions/qbzd.zsh" cp qbzd.fish "tarball-staging/${TARBALL_DIR}/completions/qbzd.fish" - tar -czvf "dist/qbz_${VERSION}_${DEB_ARCH}.tar.gz" -C tarball-staging "${TARBALL_DIR}" + tar -czvf "dist/qbz_${VERSION}_${ARCH}.tar.gz" -C tarball-staging "${TARBALL_DIR}" ls -la dist - name: qbzd-tarball run: | - QBZD_DIR="qbzd-${VERSION}-linux-${DEB_ARCH}" + QBZD_DIR="qbzd-${VERSION}-linux-${ARCH}" mkdir -p "qbzd-tarball-staging/${QBZD_DIR}/completions" cp qbzd "qbzd-tarball-staging/${QBZD_DIR}/qbzd" chmod +x "qbzd-tarball-staging/${QBZD_DIR}/qbzd" @@ -314,7 +314,7 @@ jobs: cp packaging/linux/qbzd-standalone-README.md "qbzd-tarball-staging/${QBZD_DIR}/README.md" cp LICENSE "qbzd-tarball-staging/${QBZD_DIR}/LICENSE" cp -r licenses "qbzd-tarball-staging/${QBZD_DIR}/licenses" - tar -czvf "dist/qbzd-${VERSION}-linux-${DEB_ARCH}.tar.gz" -C qbzd-tarball-staging "${QBZD_DIR}" + tar -czvf "dist/qbzd-${VERSION}-linux-${ARCH}.tar.gz" -C qbzd-tarball-staging "${QBZD_DIR}" ls -la dist - name: Upload artifacts