mirror of
https://github.com/prometheus-community/windows_exporter
synced 2024-12-13 10:04:43 +00:00
20 lines
368 B
Makefile
20 lines
368 B
Makefile
export GOOS=windows
|
|
|
|
build:
|
|
promu build -v
|
|
|
|
test:
|
|
go test -v ./...
|
|
|
|
lint:
|
|
golangci-lint -c .golangci.yaml run
|
|
|
|
fmt:
|
|
gofmt -l -w -s .
|
|
|
|
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
|