mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[windows] Add Kotlin (#3784)
This commit is contained in:
@@ -78,6 +78,11 @@ function Get-GoVersion {
|
||||
return "Go $goVersion"
|
||||
}
|
||||
|
||||
function Get-KotlinVersion {
|
||||
$kotlinVersion = $((cmd /c "kotlinc -version 2>&1") | Out-String).split(" ")[2]
|
||||
return "Kotlin $kotlinVersion"
|
||||
}
|
||||
|
||||
function Get-PHPVersion {
|
||||
($(php --version) | Out-String) -match "PHP (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$phpVersion = $Matches.Version
|
||||
|
||||
@@ -39,7 +39,8 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
||||
(Get-PerlVersion),
|
||||
(Get-PHPVersion),
|
||||
(Get-PythonVersion),
|
||||
(Get-RubyVersion)
|
||||
(Get-RubyVersion),
|
||||
(Get-KotlinVersion)
|
||||
) | Sort-Object
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user