From 832a3cf4446c28ac17a854d11ca4024d8b044b7b Mon Sep 17 00:00:00 2001 From: Cyril Duchon-Doris Date: Fri, 28 Jul 2023 13:13:21 +0200 Subject: [PATCH] chore: add apple silicon processors build command Add build reckoner commands for Apple Silicon chips (macbooks M1 and M2) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 1c5f41a0..a36a48a3 100644 --- a/Makefile +++ b/Makefile @@ -28,5 +28,7 @@ clean: # Cross compilation build-linux: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME) -ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -s -w" -v +build-apple-silicon: + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 $(GOBUILD) -o $(BINARY_NAME) -ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -s -w" -v build-docker: build-linux docker build -t quay.io/fairwinds/reckoner:go-dev -f Dockerfile .