config file for build options?

(Sloxy) #1

I’m trying to build a multi-dist executable using Travis CI which will put the built executables on github.

I want the name to be somename.os.arch.
When I build locally via command line, I use the -o param and the env vars $GOOS & $GOARCH e.g.: go build -o somename.$GOOS.$GOARCH

However, I cannot specify this for TravisCI using their build_args as other steps fail (not understanding -o flag)

Is there a Go build config file I can create to set the build output name?

(Johan Dahl) #2


Don’t know anything about Travis CI but this may do the trick?