mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
Add GraalVM Community Edition & GraalVM Native Image (#2330)
* added graalvm * added native-image and updated SoftwareReport * rework GraalVM installation * fixed graalvm installation * Updated SoftwareReport.Generator * updated graalvm.sh * fixed graalvm.sh * fixed graalvm.sh * removed rm command * resolved comments * fixed softwarereport for GraalVM * added invoke_tests for graalvm * fixed tests for graalvm * fixed GraalVM tests and SoftwareReport * added source etc-environment.sh to graalvm.sh * fixed GraalVM tests * resolved comments * fixed graalVM SoftwareReport * added GRAALVM_11_ROOT variable * fixed comment for env variable Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
@@ -284,3 +284,18 @@ function Get-PipxVersion {
|
||||
$pipxVersion = $Matches.Version
|
||||
return "Pipx $pipxVersion"
|
||||
}
|
||||
|
||||
function Get-GraalVMVersion {
|
||||
$version = & "$env:GRAALVM_11_ROOT\bin\java" --version | Select-String -Pattern "GraalVM" | Take-OutputPart -Part 5,6
|
||||
return $version
|
||||
}
|
||||
|
||||
function Build-GraalVMTable {
|
||||
$version = Get-GraalVMVersion
|
||||
$envVariables = "GRAALVM_11_ROOT"
|
||||
|
||||
return [PSCustomObject] @{
|
||||
"Version" = $version
|
||||
"Environment variables" = $envVariables
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user