mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
Change AppVeyor build to cross-compile instead of having two runs (#311)
This commit is contained in:
committed by
Martin Lindhe
parent
39b0000514
commit
35b81dcdd0
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user