Change AppVeyor build to cross-compile instead of having two runs (#311)

This commit is contained in:
Calle Pettersson
2019-01-23 02:24:59 +01:00
committed by Martin Lindhe
parent 39b0000514
commit 35b81dcdd0
4 changed files with 76 additions and 51 deletions

View File

@@ -1,5 +1,16 @@
export GOOS=windows
fmt:
gofmt -l -w -s .
build:
promu build -v
test:
go test -v ./...
crossbuild:
# The prometheus/golang-builder image for promu crossbuild doesn't exist
# on Windows, so for now, we'll just build twice
GOARCH=amd64 promu build --prefix=output/amd64
GOARCH=386 promu build --prefix=output/386