mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Add kotlin (#3755)
This commit is contained in:
18
images/linux/scripts/installers/kotlin.sh
Normal file
18
images/linux/scripts/installers/kotlin.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: kotlin.sh
|
||||
## Desc: Installs Kotlin
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
KOTLIN_ROOT="/usr/share"
|
||||
|
||||
URL=$(curl -s https://api.github.com/repos/JetBrains/kotlin/releases/latest | jq -r '.assets[].browser_download_url | select(contains("kotlin-compiler"))')
|
||||
download_with_retries $URL "/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"
|
||||
Reference in New Issue
Block a user