This is wercker step for mitchellh/gox, cross-compile golang project.
In the wercker.yml
of your application use the following step definition:
steps:
- tcnksm/gox
This step will generate binaries to ${WERCKER_OUTPUT_DIR}/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}
.
You can control build with some option from wercker.yml
:
steps:
- tcnksm/gox:
os: "darwin linux windows" # OS to cross-compile
arch: "386 amd64" # ARCH to cross-compile