mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00: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
|
||||
|
||||
Reference in New Issue
Block a user