Skip to content

Commit

Permalink
add windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney committed Feb 7, 2021
1 parent f91f64b commit b99264a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
file:
- bin/squealer.darwin.amd64.$TRAVIS_TAG
- bin/squealer.linux.amd64.$TRAVIS_TAG
- bin/squealer.windows.amd64.$TRAVIS_TAG.exe
on:
repo: owenrumney/squealer
tags: true
Expand Down
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
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.${TAG}.exe" "${args[@]}" ./cmd/squealer/

0 comments on commit b99264a

Please sign in to comment.