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

ankushg

10/14/2021, 7:05 PM
Hi friends We run CI steps like lint and detekt on Linux machines, and only use macOS for steps involving iOS compilation. We're finding that on our Linux machines, CI is still downloading the Kotlin/Native compiler, only to spit out that
Some Kotlin/Native targets cannot be built on this linux_x64 machine and are disabled:
Is there a way to skip downloading Konan when there isn't even a valid native target to compile?
a

andylamax

10/15/2021, 2:33 AM
We solve this by caching kotlin/native compilers. So, downloads take faster. Are you using github actions by any chance?
a

ankushg

10/15/2021, 4:21 AM
we're using circleci. I think we're finding that the time it takes to cache the compiler or restore the compiler is sometimes still a nontrivial amount for extremely lighweight tasks
for now, we're probably just going to avoid spinning up several separate lightweight jobs (which would each need to download konan separately) and instead have one job that does multiple lightweight tasks
t

tapchicoma

10/15/2021, 7:26 AM
probably worth to open a new issue in Kotlin
a

ankushg

10/15/2021, 8:43 PM
a

andylamax

10/16/2021, 2:37 PM
upvoted
15 Views