Skip to content

Commit

Permalink
fix to be able to release linux arm binaries
Browse files Browse the repository at this point in the history
also add darwin arm64 binary
  • Loading branch information
eitoball committed Jul 21, 2022
1 parent e8ed604 commit ca000dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
crane_darwin_amd64
crane_darwin_arm64
crane_linux_amd64
crane_linux_386
crane_linux_arm
crane_linux_arm64
crane_windows_amd64.exe
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imports:
fmt:
@(gofmt -w crane)

build: build-linux build-darwin build-windows
build: build-linux build-linux-arm build-linux-arm64 build-darwin build-darwin-arm64 build-windows

build-linux: imports
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o crane_linux_amd64 -v github.com/michaelsauter/crane/v3
Expand All @@ -21,5 +21,8 @@ build-linux-arm64: imports
build-darwin: imports
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o crane_darwin_amd64 -v github.com/michaelsauter/crane/v3

build-darwin-arm64: imports
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o crane_darwin_arm64 -v github.com/michaelsauter/crane/v3

build-windows: imports
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o crane_windows_amd64.exe -v github.com/michaelsauter/crane/v3

0 comments on commit ca000dd

Please sign in to comment.