[MacOS] Add GraalVM to macOS 1015 and 11 images (#4959)

* Add GraalVM to macOS 1015 and 11 images

* Replace graalVM tests

* Resolve comments

* Fix native image install command path

* Fixing graalvm root path in tests

* Fix GRAALVM_11_ROOT path for software report

* Fix function name
This commit is contained in:
Maksim Shilov
2022-02-02 11:02:55 +03:00
committed by GitHub
parent aeebda1fcf
commit 8eabd4605b
7 changed files with 55 additions and 3 deletions

View File

@@ -549,3 +549,18 @@ function Build-PackageManagementEnvironmentTable {
}
}
}
function Get-GraalVMVersion {
$version = & "$env:GRAALVM_11_ROOT\java" --version | Select-String -Pattern "GraalVM" | Take-Part -Part 5,6
return $version
}
function Build-GraalVMTable {
$version = Get-GraalVMVersion
$envVariables = "GRAALVM_11_ROOT"
return [PSCustomObject] @{
"Version" = $version
"Environment variables" = $envVariables
}
}