From ba1641336334a339ff437a8ac786fcbeaee0c390 Mon Sep 17 00:00:00 2001 From: xavierk Date: Wed, 16 Sep 2026 08:17:31 +0530 Subject: [PATCH] Provision XBPS tools in release CI --- .gitea/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3668751..69e7b3d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -64,6 +64,19 @@ jobs: -o /tmp/nfpm.tar.gz sudo tar -xzf /tmp/nfpm.tar.gz -C /usr/local/bin nfpm nfpm --version + # Ubuntu does not package the XBPS build tools. Use Void's static + # toolchain, pinned and checksum-verified before it reaches PATH. + XBPS_STATIC_VERSION=0.60.4_1 + XBPS_STATIC_ARCHIVE="xbps-static-static-${XBPS_STATIC_VERSION}.x86_64-musl.tar.xz" + XBPS_STATIC_SHA256=603b3c55e9cabd5af79b461b929b14e1556a443c97b5714d188681c2172d9e28 + curl --fail --silent --show-error --location \ + "https://repo-default.voidlinux.org/static/${XBPS_STATIC_ARCHIVE}" \ + -o "/tmp/${XBPS_STATIC_ARCHIVE}" + echo "${XBPS_STATIC_SHA256} /tmp/${XBPS_STATIC_ARCHIVE}" | sha256sum --check --strict + mkdir -p /tmp/xbps-static + tar -xJf "/tmp/${XBPS_STATIC_ARCHIVE}" -C /tmp/xbps-static + echo "/tmp/xbps-static/usr/bin" >> "$GITHUB_PATH" + xbps-create --version - name: Build packages run: make package