Add raylib #3
2 changed files with 8 additions and 2 deletions
|
|
@ -18,9 +18,13 @@ if [ $# -lt 1 ]; then
|
|||
echo "usage: $0 <output-file> [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}"
|
||||
|
|
|
|||
|
|
@ -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/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue