Add pre-ci release-binary creation

This commit is contained in:
Tobias Reisinger 2024-04-29 18:32:16 +02:00
parent ace4face5a
commit 83c65c00fe
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 23 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
/target /target
/pkl-out /out
/.env /.env
/api.http /api.http

View file

@ -15,11 +15,31 @@ configs:
$(MAKE) emgauwa-controller.json $(MAKE) emgauwa-controller.json
pkl-package: pkl-package:
pkl project package config --output-path "./pkl-out" pkl project package config --output-path "./out/pkl"
clean: clean:
rm -f emgauwa-controller.json rm -f emgauwa-controller.json
rm -f emgauwa-controller.sqlite rm -f emgauwa-controller.sqlite
rm -f emgauwa-core.json rm -f emgauwa-core.json
rm -f emgauwa-core.sqlite rm -f emgauwa-core.sqlite
rm -f emgauwa-dev.sqlite rm -f emgauwa-dev.sqlite
emgauwa-controller_%:
$(TOOL) build --target $* --release --bin emgauwa-controller
mkdir -p out/releases
cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
emgauwa-core_%:
$(TOOL) build --target $* --release --bin emgauwa-core
mkdir -p out/releases
cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
emgauwa_%:
$(MAKE) emgauwa-controller_$*
$(MAKE) emgauwa-core_$*
releases:
$(MAKE) TOOL=cross emgauwa_arm-unknown-linux-gnueabihf
$(MAKE) TOOL=cargo emgauwa_x86_64-unknown-linux-gnu
$(MAKE) TOOL=cross emgauwa_x86_64-unknown-linux-musl