fixes for windows collector build.

pull/139/head^2
Jason Kulatunga 3 years ago
parent fb564afe30
commit 5c492986a5

@ -38,6 +38,7 @@ jobs:
echo "building collector binary (OS = ${GOOS}, ARCH = ${GOARCH})" echo "building collector binary (OS = ${GOOS}, ARCH = ${GOARCH})"
go build -ldflags "-extldflags=-static -X main.goos=${GOOS} -X main.goarch=${GOARCH}" -o $GITHUB_WORKSPACE/dist/scrutiny-collector-metrics-${GOOS}-${GOARCH}.exe -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go go build -ldflags "-extldflags=-static -X main.goos=${GOOS} -X main.goarch=${GOARCH}" -o $GITHUB_WORKSPACE/dist/scrutiny-collector-metrics-${GOOS}-${GOARCH}.exe -tags "static netgo" collector/cmd/collector-metrics/collector-metrics.go
ls $GITHUB_WORKSPACE/dist/scrutiny-collector-metrics-${GOOS}-${GOARCH}.exe
- name: Release Asset - Collector - windows-amd64 - name: Release Asset - Collector - windows-amd64
id: upload-release-asset2 id: upload-release-asset2

Loading…
Cancel
Save