build_all_targets.sh (2268B)
1 set -e 2 for tag in none dmesg libc.membrk libc.memgrind 3 do 4 echo "-tags=$tag" 5 GOOS=darwin GOARCH=amd64 go build -tags=$tag -v ./... 6 GOOS=darwin GOARCH=amd64 go test -tags=$tag -c -o /dev/null 7 GOOS=darwin GOARCH=arm64 go build -tags=$tag -v ./... 8 GOOS=darwin GOARCH=arm64 go test -tags=$tag -c -o /dev/null 9 GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./... 10 GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null 11 GOOS=freebsd GOARCH=amd64 go build -tags=$tag -v ./... 12 GOOS=freebsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null 13 GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./... 14 GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null 15 GOOS=linux GOARCH=386 go build -tags=$tag -v ./... 16 GOOS=linux GOARCH=386 go test -tags=$tag -c -o /dev/null 17 GOOS=linux GOARCH=amd64 go build -tags=$tag -v ./... 18 GOOS=linux GOARCH=amd64 go test -tags=$tag -c -o /dev/null 19 GOOS=linux GOARCH=arm go build -tags=$tag -v ./... 20 GOOS=linux GOARCH=arm go test -tags=$tag -c -o /dev/null 21 GOOS=linux GOARCH=arm64 go build -tags=$tag -v ./... 22 GOOS=linux GOARCH=arm64 go test -tags=$tag -c -o /dev/null 23 GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null 24 GOOS=linux GOARCH=riscv64 go build -tags=$tag -v ./... 25 GOOS=linux GOARCH=s390x go build -tags=$tag -v ./... 26 GOOS=linux GOARCH=s390x go test -tags=$tag -c -o /dev/null 27 GOOS=netbsd GOARCH=amd64 go build -tags=$tag -v ./... 28 GOOS=netbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null 29 GOOS=netbsd GOARCH=arm go build -tags=$tag -v ./... 30 GOOS=netbsd GOARCH=arm go test -tags=$tag -c -o /dev/null 31 GOOS=openbsd GOARCH=386 go build -tags=$tag -v ./... 32 GOOS=openbsd GOARCH=386 go test -tags=$tag -c -o /dev/null 33 GOOS=openbsd GOARCH=amd64 go build -tags=$tag -v ./... 34 GOOS=openbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null 35 GOOS=openbsd GOARCH=arm64 go build -tags=$tag -v ./... 36 GOOS=openbsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null 37 GOOS=windows GOARCH=386 go build -tags=$tag -v ./... 38 GOOS=windows GOARCH=386 go test -tags=$tag -c -o /dev/null 39 GOOS=windows GOARCH=amd64 go build -tags=$tag -v ./... 40 GOOS=windows GOARCH=amd64 go test -tags=$tag -c -o /dev/null 41 GOOS=windows GOARCH=arm64 go build -tags=$tag -v ./... 42 GOOS=windows GOARCH=arm64 go test -tags=$tag -c -o /dev/null 43 done