expose static binaries in gitlab artifacts again

This commit is contained in:
Charles Hall 2024-12-11 14:35:53 -08:00
parent 94c1a39437
commit 1e050c8983
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 21 additions and 1 deletions

14
bin/job
View file

@ -4,6 +4,20 @@ job_artifacts() (
set -euo pipefail
nix-build-and-cache packages
# Subsequent `nix build` calls should be fast because the above line ensures
# the packages have been built already.
packages=(
static-aarch64-unknown-linux-musl
static-x86_64-unknown-linux-musl
)
for x in "${packages[@]}"; do
nix build ".#$x"
cp result/bin/grapevine grapevine-"$x"
chmod u+w grapevine-"$x"
done
)
job_ci() (