mage: Skip Test386 on non-AMD64 architectures
authorAnthony Fok <foka@debian.org>
Fri, 1 Nov 2019 00:04:54 +0000 (18:04 -0600)
committerAnthony Fok <foka@debian.org>
Fri, 1 Nov 2019 17:03:06 +0000 (11:03 -0600)
This is to allow "mage check" to run on arm64 on Travis CI.

magefile.go

index 14358822ec9d312c7894a9835eec5d19990d35c6..ae53e710bc50ff7034de91c7fe7c5bb382277833 100644 (file)
@@ -134,7 +134,11 @@ func Check() {
                return
        }
 
-       mg.Deps(Test386)
+       if runtime.GOARCH == "amd64" {
+               mg.Deps(Test386)
+       } else {
+               fmt.Printf("Skip Test386 on %s\n", runtime.GOARCH)
+       }
 
        mg.Deps(Fmt, Vet)