From 50b7c5858d96d7613bd8d53ff3d108a994120ae7 Mon Sep 17 00:00:00 2001 From: jayme-github Date: Mon, 29 Mar 2021 22:04:32 +0200 Subject: [PATCH] Fix build unsupported GOOS/GOARCH pair darwin/386 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 03d9007..993a3a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ install: script: - go vet $(go list ./... | grep -v /vendor/) - go test -v ./... -- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64 386" +- if [ "${LATEST}" = "true" ]; then gox -os="darwin" -os="linux" -os="windows" -arch="amd64" -arch="arm64" -osarch="linux/386" -osarch="windows/386" -output="build/alertmanager-webhook-fcm.{{.OS}}.{{.Arch}}" -ldflags "-extldflags \"-static\" -X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi - if [ "${LATEST}" = "true" -a -n "${TRAVIS_TAG}" ]; then docker build -t "jaymedh/alertmanager-webhook-fcm:${TRAVIS_TAG}"