From 900e1cc061978a4a588a6ffa42b7020f24346dea Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Thu, 22 Oct 2026 13:56:09 +0100 Subject: [PATCH] Standardize release workflow --- .forgejo/scripts/freebsd-build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/scripts/freebsd-build.sh b/.forgejo/scripts/freebsd-build.sh index 823d605..690395d 100644 --- a/.forgejo/scripts/freebsd-build.sh +++ b/.forgejo/scripts/freebsd-build.sh @@ -24,6 +24,9 @@ fi OUT_DIR=$(dirname "$1") mkdir -p "$OUT_DIR" OUT=$(cd "$OUT_DIR" && pwd)/$(basename "$1") +# Absolute: the script cd's into $WORK below, so a relative path would land there +# instead of next to $OUT. +LIB_OUT=$(dirname "$OUT")/libhate-no-d.a SRC=$(cd "${2:-.}" && pwd) WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}" @@ -131,9 +134,8 @@ ssh_vm 'set -e gmake CC=cc all lib' log "fetching artifacts" -mkdir -p "$OUT_DIR" scp $SCP_OPTS "root@127.0.0.1:/root/src/hate-no-d" "$OUT" -scp $SCP_OPTS "root@127.0.0.1:/root/src/libhate-no-d.a" "$OUT_DIR/libhate-no-d.a" +scp $SCP_OPTS "root@127.0.0.1:/root/src/libhate-no-d.a" "$LIB_OUT" log "built $OUT ($(wc -c < "$OUT") bytes)" -log "built $OUT_DIR/libhate-no-d.a ($(wc -c < "$OUT_DIR/libhate-no-d.a") bytes)" +log "built $LIB_OUT ($(wc -c < "$LIB_OUT") bytes)"