Skip to content

Commit 409147c

Browse files
committed
build: add macoS Sierra builder
Change-Id: I10a7a9e44a158fdce5287a9b0b065b35d11fb502 Reviewed-on: https://go-review.googlesource.com/35470 Reviewed-by: Chris Broadfoot <[email protected]>
1 parent 6c05e14 commit 409147c

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

cmd/makemac/makemac.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See https://github.com/vmware/govmomi/tree/master/govc
1010
1111
Usage:
1212
13-
$ makemac <osx_minor_version> # e.g, 8, 9, 10, 11
13+
$ makemac <osx_minor_version> # e.g, 8, 9, 10, 11, 12
1414
1515
*/
1616
package main
@@ -89,7 +89,7 @@ func (st *State) CreateMac(ctx context.Context, minor int) (err error) {
8989
guestType = "darwin12_64Guest"
9090
case 9:
9191
guestType = "darwin13_64Guest"
92-
case 10, 11:
92+
case 10, 11, 12:
9393
guestType = "darwin14_64Guest"
9494
default:
9595
return fmt.Errorf("unsupported makemac minor OS X version %d", minor)

dashboard/builders.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ var Hosts = map[string]*HostConfig{
161161
},
162162
ReverseAliases: []string{"darwin-amd64-10_11"},
163163
},
164+
"host-darwin-10_12": &HostConfig{
165+
IsReverse: true,
166+
Notes: "MacStadium OS X 10.12 VM under VMWare ESXi",
167+
env: []string{
168+
"GOROOT_BOOTSTRAP=/Users/gopher/go1.4",
169+
},
170+
ReverseAliases: []string{"darwin-amd64-10_12"},
171+
},
164172
"host-linux-s390x": &HostConfig{
165173
Notes: "run by IBM",
166174
IsReverse: true,
@@ -471,6 +479,7 @@ func (c *BuildConfig) BuildSubrepos() bool {
471479
case "darwin-amd64-10_8",
472480
"darwin-amd64-10_10",
473481
"darwin-amd64-10_11",
482+
"darwin-amd64-10_12",
474483
"darwin-386-10_11",
475484
"freebsd-386-gce101", "freebsd-amd64-gce101",
476485
"linux-386", "linux-amd64", "linux-amd64-nocgo",
@@ -793,6 +802,10 @@ func init() {
793802
numTestHelpers: 2,
794803
numTryTestHelpers: 3,
795804
})
805+
addBuilder(BuildConfig{
806+
Name: "darwin-amd64-10_12",
807+
HostType: "host-darwin-10_12",
808+
})
796809

797810
addBuilder(BuildConfig{
798811
Name: "android-arm-sdk19",

0 commit comments

Comments
 (0)