Created
February 20, 2018 16:20
-
-
Save byronmansfield/3a24a5dd3e6ef36bc6e625fcd58c2e7e to your computer and use it in GitHub Desktop.
Cross Compile Golang Projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for GOOS in darwin linux windows; do | |
for GOARCH in 386 amd64; do | |
GOOS=$GOOS GOARCH=$GOARCH go build -v -o my-app-$GOOS-$GOARCH | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment