Skip to content

Commit c6c64e3

Browse files
committed
remove macos-12 runner label
The macOS 12 runner image has been deprecated on 10/7/2024, and will be fully unsupported by 12/3/2024 - actions/runner-images#10721 - https://github.blog/changelog/2024-08-19-notice-of-upcoming-deprecations-and-breaking-changes-in-github-actions-runners/
1 parent c71a576 commit c6c64e3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

rule_runner_label.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const (
1212
compatUbuntu2004 runnerOSCompat = 1 << iota
1313
compatUbuntu2204
1414
compatUbuntu2404
15-
compatMacOS120
16-
compatMacOS120L
17-
compatMacOS120XL
1815
compatMacOS130
1916
compatMacOS130L
2017
compatMacOS130XL
@@ -56,10 +53,6 @@ var allGitHubHostedRunnerLabels = []string{
5653
"macos-13-xlarge",
5754
"macos-13-large",
5855
"macos-13",
59-
"macos-12-xl",
60-
"macos-12-xlarge",
61-
"macos-12-large",
62-
"macos-12",
6356
}
6457

6558
// https://docs.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow#using-default-labels-to-route-jobs
@@ -100,16 +93,12 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
10093
"macos-13-xlarge": compatMacOS130XL,
10194
"macos-13-large": compatMacOS130L,
10295
"macos-13": compatMacOS130,
103-
"macos-12-xl": compatMacOS120XL,
104-
"macos-12-xlarge": compatMacOS120XL,
105-
"macos-12-large": compatMacOS120L,
106-
"macos-12": compatMacOS120,
10796
"windows-latest": compatWindows2022,
10897
"windows-latest-8-cores": compatWindows2022,
10998
"windows-2022": compatWindows2022,
11099
"windows-2019": compatWindows2019,
111100
"linux": compatUbuntu2404 | compatUbuntu2204 | compatUbuntu2004, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
112-
"macos": compatMacOS150 | compatMacOS150L | compatMacOS150XL | compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL,
101+
"macos": compatMacOS150 | compatMacOS150L | compatMacOS150XL | compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL,
113102
"windows": compatWindows2022 | compatWindows2019,
114103
}
115104

0 commit comments

Comments
 (0)