Skip to content

Commit

Permalink
For cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Oct 8, 2018
1 parent b6d28b6 commit 6da7378
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
language: go

install:
- go get
env:
- GO_OS=linux GO_ARCH=amd64
- GO_OS=darwin GO_ARCH=amd64
- GO_OS=windows GO_ARCH=amd64
- GO_OS=windows GO_ARCH=386

script:
- go build
- GOOS=${GO_OS} GOARCH=${GO_ARCH} go build -o mackerel-plugin-check-whois
- zip mackerel-plugin-check-whois_${GO_OS}_${GO_ARCH}.zip mackerel-plugin-check-whois

deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file: mackerel-plugin-check-whois
file_glob: true
file: mackerel-plugin-check-whois_*.zip
on:
tag: true
all_branches: true
Expand Down

0 comments on commit 6da7378

Please sign in to comment.