ci_matrix: convert version symbols to MacOSVersion

This commit is contained in:
Sam Ford
2023-07-21 10:15:12 -04:00
parent e4c0a57d91
commit 302dcb7032

View File

@@ -52,7 +52,10 @@ module CiMatrix
filtered_runners = RUNNERS.select do |runner, _|
required_macos.any? do |r|
MacOSVersion.from_symbol(runner.fetch(:symbol)).compare(r.fetch(:comparator), r.fetch(:version))
MacOSVersion.from_symbol(runner.fetch(:symbol)).compare(
r.fetch(:comparator),
MacOSVersion.from_symbol(r.fetch(:version)),
)
end
end
return filtered_runners unless filtered_runners.empty?