Add raylib #3

Merged
pedro-bento merged 5 commits from add_raylib into master 2026-10-22 22:47:21 +01:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit be21d22bba - Show all commits

View file

@ -18,9 +18,13 @@ if [ $# -lt 1 ]; then
echo "usage: $0 <output-file> [source-dir]" >&2 echo "usage: $0 <output-file> [source-dir]" >&2
exit 2 exit 2
fi 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") OUT_DIR=$(dirname "$1")
mkdir -p "$OUT_DIR" 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) SRC=$(cd "${2:-.}" && pwd)
WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}" WORK="${FBSD_WORK:-${TMPDIR:-/tmp}/fbsd-ci}"

View file

@ -230,10 +230,12 @@ jobs:
mkdir -p dist mkdir -p dist
sh .forgejo/scripts/freebsd-build.sh dist/hate-no-d . 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 - name: Package
run: | run: |
sh .forgejo/scripts/make-archive.sh hate-no-d-freebsd-x86_64 tar.gz \ 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 - name: Attach to release
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')