mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +08:00
[macOS] Add Parallels Desktop extension (#6314)
* Add Parallels Desktop extension * fix typo * remove new line
This commit is contained in:
committed by
GitHub
parent
b0885e18a1
commit
3f0a28fe18
@@ -575,6 +575,20 @@ function Build-PackageManagementEnvironmentTable {
|
||||
}
|
||||
}
|
||||
|
||||
function Build-MiscellaneousEnvironmentTable {
|
||||
return @(
|
||||
@{
|
||||
"Name" = "PARALLELS_DMG_URL"
|
||||
"Value" = $env:PARALLELS_DMG_URL
|
||||
}
|
||||
) | ForEach-Object {
|
||||
[PSCustomObject] @{
|
||||
"Name" = $_.Name
|
||||
"Value" = $_.Value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Get-GraalVMVersion {
|
||||
$version = & "$env:GRAALVM_11_ROOT\java" --version | Select-String -Pattern "GraalVM" | Take-Part -Part 5,6
|
||||
return $version
|
||||
|
||||
@@ -309,6 +309,21 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
||||
) | Sort-Object
|
||||
)
|
||||
|
||||
if ($os.IsMonterey) {
|
||||
$markdown += New-MDHeader "Environment variables" -Level 4
|
||||
$markdown += Build-MiscellaneousEnvironmentTable | New-MDTable
|
||||
$markdown += New-MDNewLine
|
||||
|
||||
$markdown += New-MDHeader "Notes:" -Level 5
|
||||
$misc = @'
|
||||
```
|
||||
If you want to use Parallels Desktop you should download a package from URL stored in
|
||||
PARALLELS_DMG_URL environment variable. A system extension is allowed for this version.
|
||||
```
|
||||
'@
|
||||
$markdown += New-MDParagraph -Lines $misc
|
||||
}
|
||||
|
||||
#
|
||||
# Generate systeminfo.txt with information about image (for debug purpose)
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user