mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[windows] Add Kotlin (#3784)
This commit is contained in:
@@ -78,6 +78,11 @@ function Get-GoVersion {
|
|||||||
return "Go $goVersion"
|
return "Go $goVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-KotlinVersion {
|
||||||
|
$kotlinVersion = $((cmd /c "kotlinc -version 2>&1") | Out-String).split(" ")[2]
|
||||||
|
return "Kotlin $kotlinVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-PHPVersion {
|
function Get-PHPVersion {
|
||||||
($(php --version) | Out-String) -match "PHP (?<version>\d+\.\d+\.\d+)" | Out-Null
|
($(php --version) | Out-String) -match "PHP (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$phpVersion = $Matches.Version
|
$phpVersion = $Matches.Version
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
|||||||
(Get-PerlVersion),
|
(Get-PerlVersion),
|
||||||
(Get-PHPVersion),
|
(Get-PHPVersion),
|
||||||
(Get-PythonVersion),
|
(Get-PythonVersion),
|
||||||
(Get-RubyVersion)
|
(Get-RubyVersion),
|
||||||
|
(Get-KotlinVersion)
|
||||||
) | Sort-Object
|
) | Sort-Object
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -97,3 +97,11 @@ Describe "CMake" {
|
|||||||
"cmake --version" | Should -ReturnZeroExitCode
|
"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": "tortoisesvn" },
|
||||||
{ "name": "swig" },
|
{ "name": "swig" },
|
||||||
{ "name": "vswhere" },
|
{ "name": "vswhere" },
|
||||||
|
{ "name": "kotlinc" },
|
||||||
{
|
{
|
||||||
"name": "julia",
|
"name": "julia",
|
||||||
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
||||||
|
|||||||
@@ -413,6 +413,7 @@
|
|||||||
{ "name": "tortoisesvn" },
|
{ "name": "tortoisesvn" },
|
||||||
{ "name": "swig" },
|
{ "name": "swig" },
|
||||||
{ "name": "vswhere" },
|
{ "name": "vswhere" },
|
||||||
|
{ "name": "kotlinc" },
|
||||||
{
|
{
|
||||||
"name": "julia",
|
"name": "julia",
|
||||||
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
"args": [ "--ia", "/DIR=C:\\Julia" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user