hex/.github/release/assemble.sh
Dax 197ea1883c
Linux ARM64, .deb, and .rpm releases (#239)
* Linux ARM64, .deb, and .rpm releases

Both Linux architectures build natively on Ubuntu 24.04 runners (glibc 2.39
floor, Vulkan on both), publish linux-arm64 plus linux-<arch>-deb and -rpm
(hex.deb, hex.rpm) built with nfpm and installed on Ubuntu and Fedora in the
build job. hex-bin gains aarch64. Package installs report deb-<arch> or
rpm-<arch> through dpkg/rpm ownership and get the stable update command.

* build-linux.sh prints only the executable's path

* Linux releases link no system BLAS, as the Arch build shipped

* Linux build: keep libopenblas-dev for build.rs's dropped -lopenblas
2026-10-27 21:50:19 -04:00

26 lines
1.1 KiB
Shell
Executable file

#!/usr/bin/env bash
# assemble.sh <in> <dist>: gathers the release files from the verified
# artifacts in <in>/<name>/ into <dist>, refusing any file that is not one of
# the release service targets for HEX_VERSION (docs/plans/release-service.md)
# or that two artifacts both hold.
. "$(dirname "$0")/lib.sh"
in=$(posix "$1")
dist=$(posix "$2")
v=$HEX_VERSION
mkdir -p "$dist"
for file in "$in"/*/*; do
name=$(basename "$file")
[ "$name" = SHA256SUMS ] && continue
case "$name" in
"hex-$v-linux-x64" | "hex-$v-linux-x64.deb" | "hex-$v-linux-x64.rpm" | \
"hex-$v-linux-arm64" | "hex-$v-linux-arm64.deb" | "hex-$v-linux-arm64.rpm" | \
"Hex-$v-macos-arm64.zip" | "Hex-$v-macos-arm64.dmg" | \
"Hex-$v-windows-x64.exe" | "Hex-$v-windows-arm64.exe" | \
"Hex-Setup-$v-windows-x64.exe" | "Hex-Setup-$v-windows-arm64.exe") ;;
*) die "$name is not a release file of Hex $v." ;;
esac
[ ! -e "$dist/$name" ] || die "Two artifacts hold $name."
cp "$file" "$dist/$name"
done
(cd "$dist" && ls -l && sha256 -- *) | tee -a "${GITHUB_STEP_SUMMARY:-/dev/null}"