Add support for macos-11.0

This commit is contained in:
Benoit Daloze
2020-11-13 10:33:21 +01:00
parent ad1ebae995
commit 59aafb8612
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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