https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jim

02/10/2022, 7:32 PM
I just noticed that on
./gradlew detekt
the konan compiler is downloaded. Is there a way I can make native compiler downloads lazy? Furthermore I only have mingwX64 and macosX64, why is my jvm build runner that happens to be linux downloading linux platform compiler stuff?
l

louiscad

02/10/2022, 11:58 PM
It only happens the first time.
j

Jim

02/11/2022, 5:42 AM
yeah just a big bummer for CI
l

louiscad

02/11/2022, 7:23 AM
Is your CI GitHub Actions?
j

Jim

02/12/2022, 3:42 PM
Internal gitlab
l

louiscad

02/12/2022, 3:43 PM
You might want to setup some cache. This official GitHub Action might give you some inspiration to replicate it on Gitlab CI if there's not already a public project that does what you need. https://github.com/marketplace/actions/gradle-build-action
Actually, it might be simpler than replicating what I just linked. Caching the
~/.konan
directory should be enough.
j

Jim

02/13/2022, 7:25 PM
Yeah I'll do that, thanks 👍
4 Views