mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Update Kotlin install (#4645)
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
################################################################################
|
||||
|
||||
# Install Kotlin
|
||||
$url = "https://api.github.com/repos/JetBrains/kotlin/releases/latest"
|
||||
[System.String] $kotlinLatest = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "kotlin-compiler"
|
||||
$kotlinInstallerPath = Start-DownloadWithRetry -Url $kotlinLatest -Name "kotlin-compiler.zip"
|
||||
$kotlinVersion = (Get-ToolsetContent).kotlin.version
|
||||
$kotlinBinaryName = (Get-ToolsetContent).kotlin.binary_name
|
||||
|
||||
$kotlinDownloadUrl = Get-GitHubPackageDownloadUrl -RepoOwner "JetBrains" -RepoName "kotlin" -BinaryName $kotlinBinaryName -Version $kotlinVersion -UrlFilter "*{BinaryName}-{Version}.zip"
|
||||
$kotlinInstallerPath = Start-DownloadWithRetry -Url $kotlinDownloadUrl -Name "$kotlinBinaryName.zip"
|
||||
|
||||
Write-Host "Expand Kotlin archive"
|
||||
$kotlinPath = "C:\tools"
|
||||
|
||||
Reference in New Issue
Block a user