Skip to content

Commit

Permalink
ci: support win/arm64 target
Browse files Browse the repository at this point in the history
Signed-off-by: maxcleme <[email protected]>
  • Loading branch information
maxcleme authored and austinvazquez committed Apr 19, 2024
1 parent b6df5bb commit af205d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ LINUX_ARM64_BINARY=bin/linux-arm64/$(BINARY_NAME)
DARWIN_AMD64_BINARY=bin/darwin-amd64/$(BINARY_NAME)
DARWIN_ARM64_BINARY=bin/darwin-arm64/$(BINARY_NAME)
WINDOWS_AMD64_BINARY=bin/windows-amd64/$(BINARY_NAME).exe
WINDOWS_ARM64_BINARY=bin/windows-arm64/$(BINARY_NAME).exe

.PHONY: docker
docker: Dockerfile GITCOMMIT_SHA
Expand All @@ -49,7 +50,7 @@ test:
cd $(SOURCEDIR) && go test -v -timeout 30s -short -cover ./...

.PHONY: all-variants
all-variants: linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64
all-variants: linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 windows-arm64

.PHONY: linux-amd64
linux-amd64: $(LINUX_AMD64_BINARY)
Expand Down Expand Up @@ -77,6 +78,12 @@ $(WINDOWS_AMD64_BINARY): $(SOURCES) GITCOMMIT_SHA
./scripts/build_variant.sh windows amd64 $(VERSION) $(shell cat GITCOMMIT_SHA)
@mv ./bin/windows-amd64/$(BINARY_NAME) ./$(WINDOWS_AMD64_BINARY)

.PHONY: windows-arm64
windows-arm64: $(WINDOWS_ARM64_BINARY)
$(WINDOWS_ARM64_BINARY): $(SOURCES) GITCOMMIT_SHA
./scripts/build_variant.sh windows arm64 $(VERSION) $(shell cat GITCOMMIT_SHA)
@mv ./bin/windows-arm64/$(BINARY_NAME) ./$(WINDOWS_ARM64_BINARY)

GITCOMMIT_SHA: $(GITFILES)
git rev-parse --short=7 HEAD > GITCOMMIT_SHA

Expand Down

0 comments on commit af205d8

Please sign in to comment.