ci: implement gitea actions pipeline and makefile
All checks were successful
build-service / compile-binaries (push) Successful in 2m40s

This commit is contained in:
2026-05-14 19:13:05 -05:00
parent 7232c56e4e
commit 223b6d1640
2 changed files with 57 additions and 0 deletions

21
Makefile Normal file
View 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)