Skip to content

Commit

Permalink
Add download-latest-build target
Browse files Browse the repository at this point in the history
This target downloads the latest build from GitHub Actions
  • Loading branch information
gilzoide committed Jan 13, 2025
1 parent 1ca96d6 commit 29fb151
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Plugins/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
EMCC ?= emcc
# Android setup
ANDROID_NDK_ROOT ?=
# WebGL/Emscripten setup
EMCC ?= emcc
# macOS code signing setup
CODESIGN ?= codesign
MACOS_CODESIGN_SIGNATURE ?=
# Download GitHub Action releases
GITHUB_CLI_BIN ?= gh
GITHUB_REPO ?= gilzoide/unity-sqlite-net
RUN_ID ?=

ifeq ($(DEBUG),1)
CFLAGS += -O0 -g -DDEBUG
Expand Down Expand Up @@ -143,3 +150,14 @@ docker-all-windows:
docker run --rm -v "$(CURDIR)":/src -w /src gilzoide-sqlite-net-build-windows:latest make all-windows-mingw
docker-all-windows-llvm:
docker run --rm -v "$(CURDIR)":/src -w /src mstorsjo/llvm-mingw:latest make all-windows-llvm-mingw

# Download builds from GitHub Actions
download-latest-build:
$(eval TMPDIR := $(shell mktemp -d))
$(GITHUB_CLI_BIN) run download $(RUN_ID) --repo $(GITHUB_REPO) -p gilzoide-sqlite-net-* -D $(TMPDIR)
rsync -r $(TMPDIR)/gilzoide-sqlite-net-windows/* lib/windows/
rsync -r $(TMPDIR)/gilzoide-sqlite-net-linux/* lib/linux/
rsync -r $(TMPDIR)/gilzoide-sqlite-net-android/* lib/android/
rsync -r $(TMPDIR)/gilzoide-sqlite-net-macos/* lib/macos/
rsync -r $(TMPDIR)/gilzoide-sqlite-net-webgl/* lib/webgl/
$(RM) -r $(TMPDIR)

0 comments on commit 29fb151

Please sign in to comment.