Skip to content

Commit

Permalink
all: make integration test work on darwin/arm64
Browse files Browse the repository at this point in the history
Skip tests with Go versions prior to 1.16.

Bump test version for Go 1.17 and 1.18 to latest.

Change-Id: I740bbc63bf35362fcfad3cf0e07ea4bd0ee56748
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/418675
Reviewed-by: Lasse Folger <[email protected]>
  • Loading branch information
neild committed Jul 21, 2022
1 parent 5f429f7 commit c1bbc5d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,21 @@ var (
protobufVersion = "3.15.3"
protobufSHA256 = "" // ignored if protobufVersion is a git hash

golangVersions = []string{"1.11.13", "1.12.17", "1.13.15", "1.14.15", "1.15.15", "1.16.15", "1.17.10", "1.18.1"}
golangLatest = golangVersions[len(golangVersions)-1]
golangVersions = func() []string {
var vers []string
switch runtime.GOOS + "/" + runtime.GOARCH {
case "darwin/arm64":
default:
vers = []string{"1.11.13", "1.12.17", "1.13.15", "1.14.15", "1.15.15"}
}
return append(vers, "1.16.15", "1.17.12", "1.18.4")
}()
golangLatest = golangVersions[len(golangVersions)-1]

staticcheckVersion = "2022.1.2"
staticcheckSHA256s = map[string]string{
"darwin/amd64": "baa35f8fb967ee2aacad57f026e3724fbf8d9b7ad8f682f4d44b2084a96e103b",
"darwin/arm64": "9f01a581eeea088d0a6272538360f6d84996d66ae554bfada8026fe24991daa0",
"linux/386": "4cf74373e5d668b265d7a241b59ba7d26064f2cd6af50b77e62c2b3e2f3afb43",
"linux/amd64": "6dbb7187e43812fa23363cdaaa90ab13544dd36e24d02e2347014e4cf265f06d",
}
Expand Down

0 comments on commit c1bbc5d

Please sign in to comment.