Skip to content

Commit

Permalink
Adding support for windows-arm64 (oras-project#457)
Browse files Browse the repository at this point in the history
Signed-off-by: Koushik Dey <[email protected]>
  • Loading branch information
koushdey authored and Terry Howe committed Feb 2, 2023
1 parent b6f07f5 commit d5c80de
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ build-mac-arm64:
-o bin/darwin/arm64/$(CLI_EXE) $(CLI_PKG)

.PHONY: build-windows
build-windows:
build-windows: build-windows-amd64 build-windows-arm64

.PHONY: build-windows-amd64
build-windows-amd64:
GOARCH=amd64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \
-o bin/windows/amd64/$(CLI_EXE).exe $(CLI_PKG)

.PHONY: build-windows-arm64
build-windows-arm64:
GOARCH=arm64 CGO_ENABLED=0 GOOS=windows go build -v --ldflags="$(LDFLAGS)" \
-o bin/windows/arm64/$(CLI_EXE).exe $(CLI_PKG)

.PHONY: check-encoding
check-encoding:
! find cmd internal -name "*.go" -type f -exec file "{}" ";" | grep CRLF
Expand Down

0 comments on commit d5c80de

Please sign in to comment.