make build reproducible; add arm builds

This commit is contained in:
Leo Antunes
2019-03-28 23:18:58 +01:00
parent c3c00690b3
commit 78a05ddb5b
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,9 @@
VERSION=`git describe --tags --dirty --always`
LDFLAGS=-ldflags "-X main.version=${VERSION}"
GOFLAGS=-ldflags "-X main.version=${VERSION}" -asmflags -trimpath
build:
go build ${LDFLAGS} ${OPTS} -o wesher
sha256sum wesher > wesher.sha256
GOARCH=amd64 go build ${GOFLAGS} -o wesher-amd64 ${OPTS}
GOARCH=arm go build ${GOFLAGS} -o wesher-arm ${OPTS}
GOARCH=arm64 go build ${GOFLAGS} -o wesher-arm64 ${OPTS}
sha256sum wesher-* > wesher.sha256sums