Skip to content

Commit

Permalink
dashboard: add windows-386-2016{,-oldcc} builders
Browse files Browse the repository at this point in the history
This builder is equivalent to windows-amd64-2016, but using
GOARCH/GOHOSTARCH=386.

Older versions of Windows will eventually drop Go support, so we need to
have builders for newer versions.

For golang/go#58007

Change-Id: Ifdbe38aff735c91f1714e82b3e70346dd9e40b9b
Reviewed-on: https://go-review.googlesource.com/c/build/+/468540
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
prattmic authored and gopherbot committed Feb 15, 2023
1 parent 47c00be commit ce55604
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions dashboard/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,36 @@ func init() {
},
numTryTestHelpers: 4,
})
addBuilder(BuildConfig{
Name: "windows-386-2016",
HostType: "host-windows-amd64-2016",
buildsRepo: func(repo, branch, goBranch string) bool {
// This builder has modern/recent C compilers installed,
// meaning that we only want to use it with 1.20+ versions
// of Go, hence the atLeastGo1 call below; versions of Go
// prior to 1.20 will use the *-oldcc variant instead. See
// issue 35006 for more details.
return onlyGo(repo, branch, goBranch) &&
atLeastGo1(goBranch, 20)
},
KnownIssues: []int{58007},
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
})
addBuilder(BuildConfig{
Name: "windows-386-2016-oldcc",
HostType: "host-windows-amd64-2016-oldcc",
buildsRepo: func(repo, branch, goBranch string) bool {
// This builder has legacy C compilers installed, suitable
// for versions of Go prior to 1.20, hence the atMostGo1
// call below. Newer (1.20 and later) will use the
// non-oldcc variant instead. See issue 35006 for more
// details.
return onlyGo(repo, branch, goBranch) &&
atMostGo1(goBranch, 19)
},
KnownIssues: []int{58007},
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
})
addBuilder(BuildConfig{
Name: "windows-amd64-2012-oldcc",
HostType: "host-windows-amd64-2012-oldcc",
Expand Down

0 comments on commit ce55604

Please sign in to comment.