Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 4ae6b73

Browse files
committed
release-tools: support arm64
1 parent a97f2e9 commit 4ae6b73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: release-tools/build.make

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
6868
build-%: check-go-version-go
6969
mkdir -p bin
7070
CGO_ENABLED=0 GOOS=linux go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
71-
if [ "$$ARCH" = "amd64" ]; then \
71+
if [ "$(ARCH)" = "amd64" ]; then \
7272
CGO_ENABLED=0 GOOS=windows go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./cmd/$* ; \
7373
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*-ppc64le ./cmd/$* ; \
74+
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*-arm64 ./cmd/$* ; \
7475
fi
7576

7677
container-%: build-%

0 commit comments

Comments
 (0)