make build reproducible; add arm builds
This commit is contained in:
8
Makefile
8
Makefile
@ -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
|
Reference in New Issue
Block a user