:wave: currently working on a multi-module CMP pro...
# kotlin-native
i
👋 currently working on a multi-module CMP project, I’m running ios unitTests locally and they complete under 5mins (only on first run, it’s quicker afterwards due to caching) but when I run it via CI, GitHub actions, they complete in 30+ mins which is too long. Any idea what might be causing this? Any help is appreciated 😀
a
What's the Gradle task you're running?
check
? Does the entire build take 30 minutes, or just a single task, or a single test?
i
yep, the entire build takes around 30 mins
a
Have you enabled build cache? Are you using Gradle's GitHub Action? Both will really help with build times https://github.com/gradle/actions/blob/v4.3.0/docs/setup-gradle.md
i
there's few things which i missed out, one of them being
run: gradle build --configuration-cache
i'll let you know how that goes, thanks!!
a
ah yeah, enabling configuration cache on CI will help too. If you enable CC then Gradle tasks in a single subproject can run in parallel, and since KMP projects have a lot of tasks then it'll really help!