我可以在配置文件中指定GO构建文件名吗?

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?

Override script. If you mean gobuild_args instead of build_args, it is only passed to the default command go test ./..., so I don't think it would work.