2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-21 20:35:12 +00:00

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
env:
GOFLAGS: "-trimpath"
GOX_ARCHS: "linux/386 linux/amd64 \
windows/386 windows/amd64 \
GOX_ARCHS: "aix/ppc64 \
darwin/amd64 \
freebsd/386 freebsd/amd64 \
openbsd/386 openbsd/amd64 \
freebsd/386 freebsd/amd64 freebsd/arm \
linux/386 linux/amd64 linux/arm linux/arm64 linux/ppc64le \
netbsd/386 netbsd/amd64 \
linux/arm freebsd/arm \
linux/ppc64le solaris/amd64 \
aix/ppc64"
openbsd/386 openbsd/amd64 \
windows/386 windows/amd64 \
solaris/amd64"
run: |
mkdir build-output
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{
"aix": {"ppc64"},
"darwin": {"amd64"},
"freebsd": {"386", "amd64", "arm"},
"linux": {"386", "amd64", "arm", "arm64", "ppc64le"},
"netbsd": {"386", "amd64"},
"openbsd": {"386", "amd64"},
"windows": {"386", "amd64"},
"solaris": {"amd64"},
}
func main() {