mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
17 lines
588 B
Bash
17 lines
588 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: kotlin.sh
|
|
## Desc: Installs Kotlin
|
|
################################################################################
|
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
KOTLIN_ROOT="/usr/share"
|
|
downloadUrl=$(get_github_package_download_url "JetBrains/kotlin" "contains(\"kotlin-compiler\")")
|
|
download_with_retries "$downloadUrl" "/tmp"
|
|
|
|
unzip -qq /tmp/kotlin-compiler*.zip -d $KOTLIN_ROOT
|
|
rm $KOTLIN_ROOT/kotlinc/bin/*.bat
|
|
ln -sf $KOTLIN_ROOT/kotlinc/bin/* /usr/bin
|
|
|
|
invoke_tests "Tools" "Kotlin" |