improve make cross to build arm64 artifacts

This commit is contained in:
itchyny 2021-09-18 23:46:57 +09:00
parent a4eae94d71
commit f1bebac133

View file

@ -25,7 +25,8 @@ $(GOBIN)/gobump:
.PHONY: cross
cross: $(GOBIN)/goxz CREDITS
goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN)
goxz -n $(BIN) -pv=v$(VERSION) -arch=amd64,arm64 \
-build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN)
$(GOBIN)/goxz:
go install github.com/Songmu/goxz/cmd/goxz@latest