From a2dd141718a3c94ea76b2952e24a571430eaa4fa Mon Sep 17 00:00:00 2001 From: Cemal Kilic Date: Tue, 17 Mar 2026 19:33:39 +0300 Subject: [PATCH] chore: parallelize go build invocations in Makefile --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 25a7f38890..c7303750c4 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,10 @@ help: ## Show this help. all: vet sec static build ## Run the tests and build the binary. build: deps ## Build the binary. - CGO_ENABLED=0 go build $(FLAGS) - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(FLAGS) -o auth-arm64 - CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(FLAGS) -o auth-darwin-arm64 + CGO_ENABLED=0 go build $(FLAGS) & \ + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(FLAGS) -o auth-arm64 & \ + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(FLAGS) -o auth-darwin-arm64 & \ + wait build-strip: deps ## Build a stripped binary, for which the version file needs to be rewritten. echo "package utilities" > internal/utilities/version.go