Skip to content

tcnksm/wercker-step-gox

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Wercker step gox MIT License

wercker status

This is wercker step for mitchellh/gox, cross-compile golang project.

Usage

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}}.

Options

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

Preferred Box

You should use below wercker-boxes which are already setup mitchellh/gox:

If you use wercker-box which is not installed mitchellh/gox, you need additional steps:

steps:
    - script:
        name: install mitchellh/gox
        code: |
        go get -u -v github.com/mitchellh/gox
        sudo -E env PATH=$GOPATH/bin:$PATH gox -build-toolchain

Author

tcnksm

About

Wercker step for mitchellh/gox, cross-compiling golang project parallelly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages