mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 06:54:20 +02:00
Add support for macos-11.0
This commit is contained in:
@@ -52,9 +52,9 @@ export function getVirtualEnvironmentName() {
|
||||
return `ubuntu-${match[1]}.04`
|
||||
}
|
||||
|
||||
match = imageOS.match(/^macos(\d{2})(\d+)/) // e.g. macos1015
|
||||
match = imageOS.match(/^macos(\d{2})(\d+)?/) // e.g. macos1015, macos11
|
||||
if (match) {
|
||||
return `macos-${match[1]}.${match[2]}`
|
||||
return `macos-${match[1]}.${match[2] || '0'}`
|
||||
}
|
||||
|
||||
match = imageOS.match(/^win(\d+)/) // e.g. win19
|
||||
|
||||
Reference in New Issue
Block a user