Skip to content

Commit

Permalink
dist: target arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Aug 15, 2021
1 parent 7bcad37 commit e0c5243
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ rm -rf $DIR/dist/docker
mkdir -p $DIR/dist/docker

GOFLAGS='-ldflags="-s -w"'
arch=$(go env GOARCH)
version=$(awk '/const Binary/ {print $NF}' < $DIR/internal/version/binary.go | sed 's/"//g')
goversion=$(go version | awk '{print $3}')

echo "... running tests"
./test.sh

export GO111MODULE=on
for os in linux darwin freebsd windows; do
for target in "linux/amd64" "linux/arm64" "darwin/amd64" "darwin/arm64" "freebsd/amd64" "windows/amd64"; do
os=${target%/*}
arch=${target##*/}
echo "... building v$version for $os/$arch"
BUILD=$(mktemp -d ${TMPDIR:-/tmp}/nsq-XXXXX)
TARGET="nsq-$version.$os-$arch.$goversion"
Expand Down

0 comments on commit e0c5243

Please sign in to comment.