Skip to content

Commit 7ae0ddf

Browse files
committed
add macos-15 runner label support
MacOS 15 runner image is in public beta since Sep 25, 2024. https://github.blog/changelog/2024-09-25-actions-new-images-and-ubuntu-latest-changes/
1 parent 8631352 commit 7ae0ddf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test.yaml:5:11: character '\' is invalid for branch and tag names. only special
6060
|
6161
5 | - 'v\d+'
6262
| ^~~~
63-
test.yaml:10:28: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
63+
test.yaml:10:28: label "linux-latest" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
6464
|
6565
10 | os: [macos-latest, linux-latest]
6666
| ^~~~~~~~~~~~~

rule_runner_label.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const (
2121
compatMacOS140
2222
compatMacOS140L
2323
compatMacOS140XL
24+
compatMacOS150
25+
compatMacOS150L
26+
compatMacOS150XL
2427
compatWindows2019
2528
compatWindows2022
2629
)
@@ -42,6 +45,9 @@ var allGitHubHostedRunnerLabels = []string{
4245
"macos-latest-xl",
4346
"macos-latest-xlarge",
4447
"macos-latest-large",
48+
"macos-15-xlarge",
49+
"macos-15-large",
50+
"macos-15",
4551
"macos-14-xl",
4652
"macos-14-xlarge",
4753
"macos-14-large",
@@ -86,6 +92,9 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
8692
"macos-latest-xlarge": compatMacOS140XL,
8793
"macos-latest-large": compatMacOS140L,
8894
"macos-latest": compatMacOS140,
95+
"macos-15-xlarge": compatMacOS150XL,
96+
"macos-15-large": compatMacOS150L,
97+
"macos-15": compatMacOS150,
8998
"macos-14-xl": compatMacOS140XL,
9099
"macos-14-xlarge": compatMacOS140XL,
91100
"macos-14-large": compatMacOS140L,
@@ -106,7 +115,7 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
106115
"windows-2022": compatWindows2022,
107116
"windows-2019": compatWindows2019,
108117
"linux": compatUbuntu2404 | compatUbuntu2204 | compatUbuntu2004, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
109-
"macos": compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL,
118+
"macos": compatMacOS150 | compatMacOS150L | compatMacOS150XL | compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL,
110119
"windows": compatWindows2022 | compatWindows2019,
111120
}
112121

0 commit comments

Comments
 (0)