forked from TrueCloudLab/restic
Add check for cross-compilation
This commit is contained in:
parent
916efa4e1a
commit
69d8fe5b4f
1 changed files with 4 additions and 1 deletions
|
@ -323,11 +323,14 @@ func (env *TravisEnvironment) RunTests() error {
|
|||
if *runCrossCompile && !(runtime.Version() < "go1.7") {
|
||||
// compile for all target architectures with tags
|
||||
for _, tags := range []string{"release", "debug"} {
|
||||
runWithEnv(env.env, "gox", "-verbose",
|
||||
err := runWithEnv(env.env, "gox", "-verbose",
|
||||
"-osarch", strings.Join(env.goxOSArch, " "),
|
||||
"-tags", tags,
|
||||
"-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}",
|
||||
"cmds/restic")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue