}
}
+ // TODO(stephana): Remove this once all Mac machines are on the same
+ // OS version again. Move the call to swarmDimensions back to the
+ // creation of the TaskSpec struct below.
+ dimensions := swarmDimensions(parts)
+ if strings.Contains(name, "Mac") {
+ for idx, dim := range dimensions {
+ if strings.HasPrefix(dim, "os") {
+ dimensions[idx] = "os:Mac-10.12"
+ break
+ }
+ }
+ }
+
// Add the task.
b.MustAddTask(name, &specs.TaskSpec{
CipdPackages: pkgs,
- Dimensions: swarmDimensions(parts),
+ Dimensions: dimensions,
ExtraArgs: []string{
"--workdir", "../../..", "swarm_compile",
fmt.Sprintf("repository=%s", specs.PLACEHOLDER_REPO),
"Build-Mac-Clang-arm-Debug-iOS": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-arm-Release-iOS": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
],
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-arm64-Debug-iOS": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-arm64-Release-iOS": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-x86_64-Debug": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-x86_64-Debug-CommandBuffer": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-x86_64-Release": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [
"Build-Mac-Clang-x86_64-Release-CommandBuffer": {
"dimensions": [
"gpu:none",
- "os:Mac-10.11",
+ "os:Mac-10.12",
"pool:Skia"
],
"extra_args": [