mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
[macOS] Add virtualbox to macOS-12 (#5594)
* Add virtualbox to macOS-12 * Fix Get_OSVersion function as isBigSur didn't work * Use proper comparison
This commit is contained in:
@@ -389,7 +389,7 @@ function Get-NewmanVersion {
|
||||
|
||||
function Get-VirtualBoxVersion {
|
||||
$virtualBox = Run-Command "vboxmanage -v"
|
||||
return "virtualbox $virtualBox"
|
||||
return "VirtualBox $virtualBox"
|
||||
}
|
||||
|
||||
function Get-VagrantVersion {
|
||||
|
||||
@@ -141,12 +141,17 @@ if ($os.IsLessThanMonterey) {
|
||||
|
||||
if ($os.IsCatalina) {
|
||||
$utilitiesList += @(
|
||||
(Get-VirtualBoxVersion),
|
||||
(Get-VagrantVersion),
|
||||
(Get-ParallelVersion)
|
||||
)
|
||||
}
|
||||
|
||||
if (-not $os.IsBigSur) {
|
||||
$utilitiesList += @(
|
||||
(Get-VirtualBoxVersion)
|
||||
)
|
||||
}
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines ($utilitiesList | Sort-Object)
|
||||
|
||||
# Tools
|
||||
|
||||
Reference in New Issue
Block a user