config file for build options?

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?


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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.