typesafegithub / github-workflows-kt

Authoring GitHub Actions workflows in Kotlin. You won't go back to YAML!
https://typesafegithub.github.io/github-workflows-kt/
Apache License 2.0
517 stars 24 forks source link

Calling Kotlin scripts in GitHub Actions is slow #1092

Open krzema12 opened 11 months ago

krzema12 commented 11 months ago

Screenshot_2023-11-11-08-23-42-745_com android chrome-edit

Not clear what takes such long? Is it compilation? Let's check it.

krzema12 commented 11 months ago

https://github.com/typesafegithub/github-workflows-kt/actions/runs/6833343985/job/18585004676

A trivial Kotlin script:

#!/usr/bin/env kotlin
println("Hello from Kotlin!")

took 13 seconds to run.

krzema12 commented 11 months ago

Asked for help on Kotlin Slack: https://kotlinlang.slack.com/archives/C0BT46EL8/p1699694112647249