Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux arm64 build target #209

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ BUILD_FLAGS = -trimpath -a -tags "netgo static_build" -installsuffix netgo -ldfl
bin/k0sctl-linux-x64: $(GO_SRCS)
GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o bin/k0sctl-linux-x64 main.go

bin/k0sctl-linux-arm64: $(GO_SRCS)
GOOS=linux GOARCH=arm64 go build $(BUILD_FLAGS) -o bin/k0sctl-linux-arm64 main.go

bin/k0sctl-win-x64.exe: $(GO_SRCS)
GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o bin/k0sctl-win-x64.exe main.go

Expand All @@ -25,7 +28,7 @@ bin/%.sha256: bin/%
sha256sum -b $< | sed 's/bin\///' > [email protected]
mv [email protected] $@

bins := k0sctl-linux-x64 k0sctl-win-x64.exe k0sctl-darwin-x64 k0sctl-darwin-arm64
bins := k0sctl-linux-x64 k0sctl-linux-arm64 k0sctl-win-x64.exe k0sctl-darwin-x64 k0sctl-darwin-arm64
checksums := $(addsuffix .sha256,$(bins))

.PHONY: build-all
Expand Down