From 1449df4e87afe0ffa810db65d84e0a95602f11bc Mon Sep 17 00:00:00 2001 From: Owen Rumney Date: Sun, 7 Feb 2021 13:22:28 +0000 Subject: [PATCH] add windows build --- .travis.yml | 1 + scripts/build.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b276799..304182d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ jobs: file: - bin/squealer.darwin.amd64.$TRAVIS_TAG - bin/squealer.linux.amd64.$TRAVIS_TAG + - bin/squealer.windows.amd64.$TRAVIS_TAG on: repo: owenrumney/squealer tags: true diff --git a/scripts/build.sh b/scripts/build.sh index fe9d913..7156ee4 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -6,6 +6,6 @@ export CGO_ENABLED=0 export GOFLAGS=-mod=vendor args=(-ldflags "-X github.com/owenrumney/squealer/version.Version=${TAG} -s -w -extldflags '-fno-PIC -static'") -GOOS=darwin GOARCH=amd64 go build -o bin/squealer.darwin.amd64 "${args[@]}" ./cmd/squealer/ -GOOS=linux GOARCH=amd64 go build -o bin/squealer.linux.amd64 "${args[@]}" ./cmd/squealer/ -GOOS=windows GOARCH=amd64 go build -o bin/squealer.windows.amd64.exe "${args[@]}" ./cmd/squealer/ \ No newline at end of file +GOOS=darwin GOARCH=amd64 go build -o "bin/squealer.darwin.amd64.${TAG}" "${args[@]}" ./cmd/squealer/ +GOOS=linux GOARCH=amd64 go build -o "bin/squealer.linux.amd64.${TAG}" "${args[@]}" ./cmd/squealer/ +GOOS=windows GOARCH=amd64 go build -o "bin/squealer.windows.amd64.exe.${TAG}" "${args[@]}" ./cmd/squealer/ \ No newline at end of file