From be21d22bba7afeb85844a8ef23508618d0c977a2 Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Thu, 22 Oct 2026 22:25:59 +0100 Subject: [PATCH] Add raylib --- .forgejo/scripts/freebsd-build.sh | 6 +++++- .forgejo/workflows/release.yml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/scripts/freebsd-build.sh b/.forgejo/scripts/freebsd-build.sh index abf0185..f7178ff 100644 --- a/.forgejo/scripts/freebsd-build.sh +++ b/.forgejo/scripts/freebsd-build.sh @@ -18,9 +18,13 @@ if [ $# -lt 1 ]; then echo "usage: $0 [source-dir]" >&2 exit 2 fi +# Both paths are resolved before the cd into $WORK below: a relative output +# directory would otherwise be created under the work dir, and the artifact +# copy would look for it there. OUT_DIR=$(dirname "$1") mkdir -p "$OUT_DIR" -OUT=$(cd "$OUT_DIR" && pwd)/$(basename "$1") +OUT_DIR=$(cd "$OUT_DIR" && pwd) +OUT="$OUT_DIR/$(basename "$1")" SRC=$(cd "${2:-.}" && pwd) WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}" diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 0e3149c..1f746c4 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -230,10 +230,12 @@ jobs: mkdir -p dist sh .forgejo/scripts/freebsd-build.sh dist/hate-no-d . + # Both artifacts come back from the guest (the VM builds its own + # hate-no-d.lua), so package dist/, not the checked-out copy. - name: Package run: | sh .forgejo/scripts/make-archive.sh hate-no-d-freebsd-x86_64 tar.gz \ - dist/hate-no-d ./hate-no-d.lua + dist/hate-no-d dist/hate-no-d.lua - name: Attach to release if: startsWith(github.ref, 'refs/tags/')