ci: implement gitea actions pipeline and makefile
All checks were successful
build-service / compile-binaries (push) Successful in 2m40s
All checks were successful
build-service / compile-binaries (push) Successful in 2m40s
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
BIN_NAME := escape_room_server
|
||||
OUT_DIR := ./dist
|
||||
|
||||
.PHONY: all clean build-x86 build-arm64
|
||||
|
||||
all: build-x86 build-arm64
|
||||
|
||||
prep:
|
||||
mkdir -p $(OUT_DIR)
|
||||
|
||||
build-x86: prep
|
||||
cargo build --release --target x86_64-unknown-linux-gnu
|
||||
cp target/x86_64-unknown-linux-gnu/release/$(BIN_NAME) $(OUT_DIR)/$(BIN_NAME)-x86_64
|
||||
|
||||
build-arm64: prep
|
||||
cross build --release --target aarch64-unknown-linux-gnu
|
||||
cp target/aarch64-unknown-linux-gnu/release/$(BIN_NAME) $(OUT_DIR)/$(BIN_NAME)-arm64
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
rm -rf $(OUT_DIR)
|
||||
Reference in New Issue
Block a user