standardize_release_workflow #2

Merged
pedro-bento merged 4 commits from standardize_release_workflow into master 2026-10-22 17:18:45 +01:00
Showing only changes of commit 900e1cc061 - Show all commits

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)"