Standardize release workflow
All checks were successful
release / linux/aarch64 (pull_request) Successful in 50s
release / linux/armv7 (pull_request) Successful in 53s
release / linux/i686 (pull_request) Successful in 41s
release / linux/x86_64 (pull_request) Successful in 37s
release / android (pull_request) Successful in 1m33s
release / freebsd/x86_64 (pull_request) Successful in 4m21s
release / windows/i686 (pull_request) Successful in 56s
release / windows/x86_64 (pull_request) Successful in 56s

This commit is contained in:
pedro-bento 2026-10-22 13:56:09 +01:00
parent d7a5a5fa57
commit 900e1cc061

View file

@ -24,6 +24,9 @@ fi
OUT_DIR=$(dirname "$1") OUT_DIR=$(dirname "$1")
mkdir -p "$OUT_DIR" mkdir -p "$OUT_DIR"
OUT=$(cd "$OUT_DIR" && pwd)/$(basename "$1") 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) SRC=$(cd "${2:-.}" && pwd)
WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}" WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}"
@ -131,9 +134,8 @@ ssh_vm 'set -e
gmake CC=cc all lib' gmake CC=cc all lib'
log "fetching artifacts" 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/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 ($(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)"