mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +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
|
||||
|
||||
@@ -39,7 +39,8 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
||||
(Get-PerlVersion),
|
||||
(Get-PHPVersion),
|
||||
(Get-PythonVersion),
|
||||
(Get-RubyVersion)
|
||||
(Get-RubyVersion),
|
||||
(Get-KotlinVersion)
|
||||
) | Sort-Object
|
||||
)
|
||||
|
||||
|
||||
@@ -97,3 +97,11 @@ Describe "CMake" {
|
||||
"cmake --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Kotlin" {
|
||||
$kotlinPackages = @("kotlinc", "kotlinc-js", "kotlinc-jvm")
|
||||
|
||||
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||
"$toolName -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
@@ -387,6 +387,7 @@
|
||||
{ "name": "tortoisesvn" },
|
||||
{ "name": "swig" },
|
||||
{ "name": "vswhere" },
|
||||
{ "name": "kotlinc" },
|
||||
{
|
||||
"name": "julia",
|
||||
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
{ "name": "tortoisesvn" },
|
||||
{ "name": "swig" },
|
||||
{ "name": "vswhere" },
|
||||
{ "name": "kotlinc" },
|
||||
{
|
||||
"name": "julia",
|
||||
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
||||
|
||||
Reference in New Issue
Block a user