From a46fb23cddbdfb6279ea07452f71ee433c8525a4 Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Mon, 13 Jan 2025 21:21:59 -0500 Subject: [PATCH] Add all arches and log level --- Makefile | 11 ++++++++++- docker-compose.yml | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 015c5b8..0f0aa39 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,16 @@ test: docker run fosrl/newt:latest local: - CGO_ENABLED=0 go build -o newt + CGO_ENABLED=0 go build -o newt + +all_arches: + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o newt_linux_arm64 + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o newt_linux_amd64 + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o newt_darwin_arm64 + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o newt_darwin_amd64 + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o newt_windows_amd64.exe + CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -o newt_freebsd_amd64 + CGO_ENABLED=0 GOOS=freebsd GOARCH=arm64 go build -o newt_freebsd_arm64 clean: rm newt diff --git a/docker-compose.yml b/docker-compose.yml index b67c69a..86f4ca1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,4 +6,5 @@ services: environment: - PANGOLIN_ENDPOINT=https://example.com - NEWT_ID=2ix2t8xk22ubpfy - - NEWT_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2 \ No newline at end of file + - NEWT_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2 + - LOG_LEVEL=DEBUG \ No newline at end of file