os/mac/version: add unsupported_release? helper
This commit is contained in:
parent
4c33d85172
commit
fdc113d85c
@ -114,7 +114,7 @@ class GitHubRunnerMatrix
|
|||||||
|
|
||||||
MacOSVersions::SYMBOLS.each_value do |version|
|
MacOSVersions::SYMBOLS.each_value do |version|
|
||||||
macos_version = OS::Mac::Version.new(version)
|
macos_version = OS::Mac::Version.new(version)
|
||||||
next if macos_version.outdated_release? || macos_version.prerelease?
|
next if macos_version.unsupported_release?
|
||||||
|
|
||||||
spec = MacOSRunnerSpec.new(
|
spec = MacOSRunnerSpec.new(
|
||||||
name: "macOS #{version}-x86_64",
|
name: "macOS #{version}-x86_64",
|
||||||
|
|||||||
@ -72,6 +72,11 @@ module OS
|
|||||||
self >= HOMEBREW_MACOS_NEWEST_UNSUPPORTED
|
self >= HOMEBREW_MACOS_NEWEST_UNSUPPORTED
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
|
def unsupported_release?
|
||||||
|
outdated_release? || prerelease?
|
||||||
|
end
|
||||||
|
|
||||||
# For {OS::Mac::Version} compatibility.
|
# For {OS::Mac::Version} compatibility.
|
||||||
sig { returns(T::Boolean) }
|
sig { returns(T::Boolean) }
|
||||||
def requires_nehalem_cpu?
|
def requires_nehalem_cpu?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user