mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[macOS] Pin kotlin to latest version(2.2.0) (#12610)
* unpin kotlin to 2.1.10 version * # Avoid version call, use -help instead to avoid IR errors
This commit is contained in:
@@ -15,15 +15,6 @@ for package in $common_packages; do
|
||||
brew install hashicorp/tap/packer
|
||||
;;
|
||||
|
||||
kotlin)
|
||||
# Pin kotlin bottle to 2.1.10 due to an issue with the latest version
|
||||
# https://youtrack.jetbrains.com/issue/KT-76169/kotlinc-js-version-and-kapt-version-returning-non-zero-status-code-on-v2.1.20
|
||||
kotlin_commit="442af88a2925f8c0e079eaf4fa62261133d2d7c4"
|
||||
kotlin_rb_link="https://raw.githubusercontent.com/Homebrew/homebrew-core/$kotlin_commit/Formula/k/kotlin.rb"
|
||||
kotlin_rb_path=$(download_with_retry "$kotlin_rb_link")
|
||||
brew install "$kotlin_rb_path"
|
||||
;;
|
||||
|
||||
cmake)
|
||||
# Pin cmake bottle to 3.31.6 due to a backward compatibility issue with the latest version
|
||||
# https://github.com/actions/runner-images/issues/11926
|
||||
|
||||
@@ -133,7 +133,7 @@ Describe "Kotlin" {
|
||||
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlinc-js")
|
||||
|
||||
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||
"$toolName -version" | Should -ReturnZeroExitCode
|
||||
"$toolName -help" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user