Skip to content

Commit

Permalink
Merge pull request #453 from muzimuzhi/add-macos-15
Browse files Browse the repository at this point in the history
Add `macos-15` runner label support
  • Loading branch information
rhysd authored Sep 27, 2024
2 parents 8631352 + 7ae0ddf commit aa1a6d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.yaml:5:11: character '\' is invalid for branch and tag names. only special
|
5 | - 'v\d+'
| ^~~~
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]
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]
|
10 | os: [macos-latest, linux-latest]
| ^~~~~~~~~~~~~
Expand Down
11 changes: 10 additions & 1 deletion rule_runner_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const (
compatMacOS140
compatMacOS140L
compatMacOS140XL
compatMacOS150
compatMacOS150L
compatMacOS150XL
compatWindows2019
compatWindows2022
)
Expand All @@ -42,6 +45,9 @@ var allGitHubHostedRunnerLabels = []string{
"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",
Expand Down Expand Up @@ -86,6 +92,9 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
"macos-latest-xlarge": compatMacOS140XL,
"macos-latest-large": compatMacOS140L,
"macos-latest": compatMacOS140,
"macos-15-xlarge": compatMacOS150XL,
"macos-15-large": compatMacOS150L,
"macos-15": compatMacOS150,
"macos-14-xl": compatMacOS140XL,
"macos-14-xlarge": compatMacOS140XL,
"macos-14-large": compatMacOS140L,
Expand All @@ -106,7 +115,7 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
"windows-2022": compatWindows2022,
"windows-2019": compatWindows2019,
"linux": compatUbuntu2404 | compatUbuntu2204 | compatUbuntu2004, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
"macos": compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL,
"macos": compatMacOS150 | compatMacOS150L | compatMacOS150XL | compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL,
"windows": compatWindows2022 | compatWindows2019,
}

Expand Down

0 comments on commit aa1a6d2

Please sign in to comment.