Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Add cross compile back to Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Apr 25, 2017
1 parent 5bf1f40 commit b8a3689
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
language: go

go:
- 1.6
- 1.7

os:
- linux
Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@ before-build:
# Collects all dependencies and then calls update
.PHONY: collect
collect:

.PHONY: cross
cross:
test -d dist || mkdir dist
echo "Building Windows 32-bit..."
env GOOS=windows GOARCH=386 go build -o dist/pingbeat-windows-32.exe
echo "Building Windows 64-bit..."
env GOOS=windows GOARCH=amd64 go build -o dist/pingbeat-windows-64.exe
echo "Building Linux 32-bit..."
env GOOS=linux GOARCH=386 go build -o dist/pingbeat-linux-32.exe
echo "Building Linux 64-bit..."
env GOOS=linux GOARCH=amd64 go build -o dist/pingbeat-linux-64.exe
echo "Building OSX 32-bit..."
env GOOS=darwin GOARCH=386 go build -o dist/pingbeat-darwin-32.exe
echo "Building OSX 64-bit..."
env GOOS=darwin GOARCH=amd64 go build -o dist/pingbeat-darwin-64.exe

0 comments on commit b8a3689

Please sign in to comment.