Add pre-ci release-binary creation
This commit is contained in:
parent
ace4face5a
commit
83c65c00fe
2 changed files with 23 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
|||
/target
|
||||
/pkl-out
|
||||
/out
|
||||
|
||||
/.env
|
||||
/api.http
|
||||
|
|
22
Makefile
22
Makefile
|
@ -15,7 +15,7 @@ configs:
|
|||
$(MAKE) emgauwa-controller.json
|
||||
|
||||
pkl-package:
|
||||
pkl project package config --output-path "./pkl-out"
|
||||
pkl project package config --output-path "./out/pkl"
|
||||
|
||||
clean:
|
||||
rm -f emgauwa-controller.json
|
||||
|
@ -23,3 +23,23 @@ clean:
|
|||
rm -f emgauwa-core.json
|
||||
rm -f emgauwa-core.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
|
||||
|
||||
|
|
Loading…
Reference in a new issue