Skip to content

Commit d0819ed

Browse files
committed
cmd/release: use macOS 11.0 to build go1.17 and up
We continue to use 10.15 for 1.16 and 1.15. Fixes golang/go#46161. Change-Id: I84b597c6cf99f1d212ff1bba271bec8ef1c0557c Reviewed-on: https://go-review.googlesource.com/c/build/+/321011 Trust: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent d1a98ea commit d0819ed

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cmd/release/release.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ var builds = []*Build{
202202
Builder: "windows-amd64-2008",
203203
},
204204
{
205+
GoQuery: ">= go1.17beta1",
205206
OS: "darwin",
206207
Arch: "amd64",
207208
Race: true,
208-
Builder: "darwin-amd64-10_15",
209+
Builder: "darwin-amd64-11_0",
209210
},
210211
{
211212
GoQuery: ">= go1.16beta1", // Go 1.16 Beta 1 is the first Go (pre-)release with the darwin/arm64 port.
@@ -274,6 +275,13 @@ var builds = []*Build{
274275
Race: true,
275276
Builder: "freebsd-amd64-11_2",
276277
},
278+
{
279+
GoQuery: "< go1.17beta1", // See golang/go#46161.
280+
OS: "darwin",
281+
Arch: "amd64",
282+
Race: true,
283+
Builder: "darwin-amd64-10_15",
284+
},
277285

278286
// Test-only builds.
279287
{

cmd/release/release_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,14 @@ func TestBuilderSelectionPerGoVersion(t *testing.T) {
104104
// Go 1.16 continues to use the the FreeBSD 11.2 builder.
105105
{"go1.16", "freebsd-amd64", "freebsd-amd64-11_2"},
106106
{"go1.16", "freebsd-386", "freebsd-386-11_2"},
107+
// Go 1.16 uses MacOS 10.15.
108+
{"go1.16", "darwin-amd64", "darwin-amd64-10_15"},
107109

108110
// Go 1.17 starts to use the FreeBSD 11.4 builder.
109111
{"go1.17", "freebsd-amd64", "freebsd-amd64-11_4"},
110112
{"go1.17", "freebsd-386", "freebsd-386-11_4"},
113+
// Go 1.17 uses MacOS 11.0.
114+
{"go1.17", "darwin-amd64", "darwin-amd64-11_0"},
111115
}
112116
for _, tc := range testCases {
113117
t.Run(tc.target+"@"+tc.goVer, func(t *testing.T) {

0 commit comments

Comments
 (0)