From cc3b4542629bfdac70e0efe35f4d3380efdd6bb7 Mon Sep 17 00:00:00 2001 From: Urko Date: Thu, 2 Mar 2023 18:39:30 +0100 Subject: [PATCH] feat: add build for raspi and freebsd --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7bd101f..441aaab 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,10 @@ test-coverage: build: rm -rf ${BINARY_DIR} mkdir ${BINARY_DIR} - env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go \ No newline at end of file + env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go +build_raspi: + rm -rf ${BINARY_DIR} + mkdir ${BINARY_DIR} + env GOOS=freebsd CGO_ENABLED=0 GOARCH=arm64 ENV=prod go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go +list_build_types: + go tool dist list | grep arm \ No newline at end of file