Skip to content

Commit

Permalink
Add linux_arm64 build (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Mar 23, 2020
1 parent e044bc8 commit 1b20c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ VERSION ?= latest
GITHUB_USERNAME := int128
GITHUB_REPONAME := slack-docker
LDFLAGS := -X main.version=$(VERSION)
OSARCH := linux_arm64 linux_amd64 darwin_amd64 windows_amd64

$(TARGET):
go build -o $@ -ldflags "$(LDFLAGS)"
Expand All @@ -15,7 +16,7 @@ check:
.PHONY: dist
dist:
# make the zip files for GitHub Releases
VERSION=$(VERSION) CGO_ENABLED=0 goxzst -d dist -i "LICENSE" -o "$(TARGET)" -t "$(TARGET).rb" -- -ldflags "$(LDFLAGS)"
VERSION=$(VERSION) CGO_ENABLED=0 goxzst -d dist -i "LICENSE" -o "$(TARGET)" -t "$(TARGET).rb" -osarch "$(OSARCH)" -- -ldflags "$(LDFLAGS)"
# test the zip file
zipinfo dist/$(TARGET)_linux_amd64.zip

Expand Down

0 comments on commit 1b20c50

Please sign in to comment.