make build reproducible; add arm builds
This commit is contained in:
parent
c3c00690b3
commit
78a05ddb5b
|
@ -5,6 +5,7 @@
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
wesher
|
wesher
|
||||||
|
wesher-*
|
||||||
|
|
||||||
# Test binary, build with `go test -c`
|
# Test binary, build with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
@ -14,4 +15,4 @@ wesher
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
*.tmp
|
*.tmp
|
||||||
*.sha256
|
*.sha256sums
|
||||||
|
|
|
@ -42,9 +42,10 @@ jobs:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
secure: "hWSa2rdQDwUrEtRw17L2P2um+nnuAaFm7+k97KYGboW3p0JY+nPJspLshT4XaeTuB4FQMVKQxXY5Tn0aXcp4lLFqXbUrOssFUDXVpL5g0MopX/8lItt0JZ/6L3tJN57lKkEZD8nDRR2f0DYe9c6mOnSG5I+4n5NOBqbhb8S1CD6qS4KU38Ev45X7JB42D6v/KflR7jNVYQ20jIPhVW0VhksB6WiVGBo8aNnKpqQyyNehOdRDw8qtUmj/XzKj6mN8co4WS2UxTb1yQchXq5vkipqdrejgqHy3njhJ6563MKGmGAyvV5Ok8a2BVpAgi9uLf8K74fTAKbJje9RGrGMccCWWuDlKxLtdZKlYgTt2KQgVA9ncaluYSVa6dbk51l1NGYvVYlX0yNwQ0g2iUN0dstKKdqkeqngKDiuaMiSOCeSY7Fv00bWLtLOjOQX644G1o4VLm09iWBAwQHHZhMdBxUks7wo876cKQkW1LgursA4IDoKSi4vZ8KQqeZjoLbJK/QBRhNKA57jI8StoaegZODG4jJRVsHbEA5FmFsHclbzgg7GZD7GyZtX0BJ655NRYis1W44IHLda2Wq7Fz42nPivvjQVhHvyodf50OUU+f4EPJwqEnWgT3dYO23/DEHst4Z/6yY7ivhaBm9N4rJ2Gkn26Bjtz1IGHM0HJxXQoEJE="
|
secure: "hWSa2rdQDwUrEtRw17L2P2um+nnuAaFm7+k97KYGboW3p0JY+nPJspLshT4XaeTuB4FQMVKQxXY5Tn0aXcp4lLFqXbUrOssFUDXVpL5g0MopX/8lItt0JZ/6L3tJN57lKkEZD8nDRR2f0DYe9c6mOnSG5I+4n5NOBqbhb8S1CD6qS4KU38Ev45X7JB42D6v/KflR7jNVYQ20jIPhVW0VhksB6WiVGBo8aNnKpqQyyNehOdRDw8qtUmj/XzKj6mN8co4WS2UxTb1yQchXq5vkipqdrejgqHy3njhJ6563MKGmGAyvV5Ok8a2BVpAgi9uLf8K74fTAKbJje9RGrGMccCWWuDlKxLtdZKlYgTt2KQgVA9ncaluYSVa6dbk51l1NGYvVYlX0yNwQ0g2iUN0dstKKdqkeqngKDiuaMiSOCeSY7Fv00bWLtLOjOQX644G1o4VLm09iWBAwQHHZhMdBxUks7wo876cKQkW1LgursA4IDoKSi4vZ8KQqeZjoLbJK/QBRhNKA57jI8StoaegZODG4jJRVsHbEA5FmFsHclbzgg7GZD7GyZtX0BJ655NRYis1W44IHLda2Wq7Fz42nPivvjQVhHvyodf50OUU+f4EPJwqEnWgT3dYO23/DEHst4Z/6yY7ivhaBm9N4rJ2Gkn26Bjtz1IGHM0HJxXQoEJE="
|
||||||
|
file_glob: true
|
||||||
file:
|
file:
|
||||||
- wesher
|
- wesher-*
|
||||||
- wesher.sha256
|
- wesher.sha256sums
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -1,7 +1,9 @@
|
||||||
VERSION=`git describe --tags --dirty --always`
|
VERSION=`git describe --tags --dirty --always`
|
||||||
|
|
||||||
LDFLAGS=-ldflags "-X main.version=${VERSION}"
|
GOFLAGS=-ldflags "-X main.version=${VERSION}" -asmflags -trimpath
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build ${LDFLAGS} ${OPTS} -o wesher
|
GOARCH=amd64 go build ${GOFLAGS} -o wesher-amd64 ${OPTS}
|
||||||
sha256sum wesher > wesher.sha256
|
GOARCH=arm go build ${GOFLAGS} -o wesher-arm ${OPTS}
|
||||||
|
GOARCH=arm64 go build ${GOFLAGS} -o wesher-arm64 ${OPTS}
|
||||||
|
sha256sum wesher-* > wesher.sha256sums
|
Loading…
Reference in New Issue