Skip to content

Commit

Permalink
add cross-compilation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetb committed Jan 27, 2016
1 parent c127b7d commit 09a725c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*~
*.swp
docker-ext-commands.txt
bin/

# Compiled binary
azure-extensions-cli
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ and run:
export GO15VENDOREXPERIMENT=1
go build

To cross compile:

go get github.com/mitchellh/gox
export PATH=$PATH:$GOPATH/bin
gox -arch="amd64" -os="windows linux darwin" -output "bin/{{.OS}}-{{.Arch}}_{{.Dir}}"

## Author

Ahmet Alp Balkan
Expand Down

0 comments on commit 09a725c

Please sign in to comment.