feat: add build for raspi and freebsd
This commit is contained in:
parent
adb28dafe7
commit
cc3b454262
8
Makefile
8
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
|
||||
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
|
Loading…
Reference in New Issue