Synchronize OS and architectures for testing

This commit is contained in:
Alexander Neumann 2020-12-29 11:11:50 +01:00
parent 46d2ca5095
commit 4133b1ea65
2 changed files with 9 additions and 7 deletions

View file

@ -211,15 +211,14 @@ jobs:
- name: Cross-compile with gox - name: Cross-compile with gox
env: env:
GOFLAGS: "-trimpath" GOFLAGS: "-trimpath"
GOX_ARCHS: "linux/386 linux/amd64 \ GOX_ARCHS: "aix/ppc64 \
windows/386 windows/amd64 \
darwin/amd64 \ darwin/amd64 \
freebsd/386 freebsd/amd64 \ freebsd/386 freebsd/amd64 freebsd/arm \
openbsd/386 openbsd/amd64 \ linux/386 linux/amd64 linux/arm linux/arm64 linux/ppc64le \
netbsd/386 netbsd/amd64 \ netbsd/386 netbsd/amd64 \
linux/arm freebsd/arm \ openbsd/386 openbsd/amd64 \
linux/ppc64le solaris/amd64 \ windows/386 windows/amd64 \
aix/ppc64" solaris/amd64"
run: | run: |
mkdir build-output mkdir build-output
gox -parallel 2 -verbose -osarch "$GOX_ARCHS" -output "build-output/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/restic gox -parallel 2 -verbose -osarch "$GOX_ARCHS" -output "build-output/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/restic

View file

@ -222,11 +222,14 @@ func buildTargets(sourceDir, outputDir string, targets map[string][]string) {
} }
var defaultBuildTargets = map[string][]string{ var defaultBuildTargets = map[string][]string{
"aix": {"ppc64"},
"darwin": {"amd64"}, "darwin": {"amd64"},
"freebsd": {"386", "amd64", "arm"}, "freebsd": {"386", "amd64", "arm"},
"linux": {"386", "amd64", "arm", "arm64", "ppc64le"}, "linux": {"386", "amd64", "arm", "arm64", "ppc64le"},
"netbsd": {"386", "amd64"},
"openbsd": {"386", "amd64"}, "openbsd": {"386", "amd64"},
"windows": {"386", "amd64"}, "windows": {"386", "amd64"},
"solaris": {"amd64"},
} }
func main() { func main() {