Skip to content

Commit

Permalink
fix: override GOARCH for AMD builds as well as ARM
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
FredrikAugust committed Aug 30, 2024
1 parent baa2a7b commit 57944fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 57944fe

Please sign in to comment.