From 57944fed24cb99b76a4cee1baaf7bf265470e218 Mon Sep 17 00:00:00 2001 From: Fredrik August Madsen-Malmo Date: Fri, 30 Aug 2024 15:05:07 +0200 Subject: [PATCH] fix: override GOARCH for AMD builds as well as ARM Without this, as it was only overridden on arm, building on an arm machine would generate _two_ arm builds, and no amd builds. Signed-off-by: Fredrik August Madsen-Malmo --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6aae78e..4bda085 100644 --- a/Makefile +++ b/Makefile @@ -27,9 +27,9 @@ install-dependencies: .PHONY: release release: - make BIN_NAME=gatewayapi-plugin-darwin-amd64 GOOS=darwin gatewayapi-plugin-build + make BIN_NAME=gatewayapi-plugin-darwin-amd64 GOOS=darwin GOARCH=amd64 gatewayapi-plugin-build make BIN_NAME=gatewayapi-plugin-darwin-arm64 GOOS=darwin GOARCH=arm64 gatewayapi-plugin-build - make BIN_NAME=gatewayapi-plugin-linux-amd64 GOOS=linux gatewayapi-plugin-build + make BIN_NAME=gatewayapi-plugin-linux-amd64 GOOS=linux GOARCH=amd64 gatewayapi-plugin-build make BIN_NAME=gatewayapi-plugin-linux-arm64 GOOS=linux GOARCH=arm64 gatewayapi-plugin-build make BIN_NAME=gatewayapi-plugin-windows-amd64.exe GOOS=windows gatewayapi-plugin-build