test-architectures.sh 461 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. go tool dist list | while IFS=/ read os arch; do
  4. echo "Checking $os/$arch..."
  5. echo " normal"
  6. GOARCH=$arch GOOS=$os go build -o /dev/null ./...
  7. echo " noasm"
  8. GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null ./...
  9. echo " appengine"
  10. GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null ./...
  11. echo " noasm,appengine"
  12. GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null ./...
  13. done