https://kotlinlang.org logo
s

simon.vergauwen

08/24/2021, 3:32 PM
Hey 👋. Does anyone have an example/project they can share of Github Action caches some stuff for MPP? I saw it’s downloading a lot of binaries and platform specific things ever single time on CI.
s

simon.vergauwen

08/24/2021, 3:35 PM
Thank you @Big Chungus
l

louiscad

08/24/2021, 5:24 PM
Downloading it very fast though, I wonder if the servers are not super close from one another, which would make sense since the binaries are on a CDN.
That is to says that I'm not sure it'd become substantially faster, so I'd interested to see some comparisons.
a

andylamax

08/24/2021, 10:25 PM
I do have scenarios that 13 minutes CI builds were brought down to 8 just after introducing Konan Caching
l

louiscad

08/24/2021, 10:50 PM
Did it reproduce consistently? With the caching shown behind the link above?
a

andylamax

08/25/2021, 5:43 AM
I never attempted to reproduce it, but I can tell my CI builds (specifically ones targeting Koltin/Native) were not taking too much time as previously
s

simon.vergauwen

08/26/2021, 2:29 PM
I tested this, and in the Arrow project we save about
3-5
minutes per action. This happens for 3 actions in parallel, so saves
9-15
minutes of actions running in total per build. So 100% worth it for the Arrow project I’d say.
I can see that for Windows it loads a cache of
1,4GB
and on MacOs/Linux the cache is about
1,2GB
in size.
b

Big Chungus

08/26/2021, 2:30 PM
Everything is bloated on windows
s

simon.vergauwen

08/26/2021, 2:31 PM
It seems so yes 😂
b

Big Chungus

08/26/2021, 2:32 PM
My windows matrix always takes at least twice as long as ubuntu due to file bloat and mingw dependencies needed
s

simon.vergauwen

08/26/2021, 2:35 PM
Yes, I’m seeing that too. So I am running
Linux+JVM
,
MacOs+iOS
,
Windows
,
JS
and they take about 11-12m each.
b

Big Chungus

08/26/2021, 2:43 PM
I usually build all cross-platform targets on linux and only defer to osx and win for stuff that cannot be built on linux
2
l

louiscad

08/26/2021, 2:44 PM
It's OS XI now (or macOS 😉)
b

Big Chungus

08/26/2021, 2:45 PM
What XI stands for? Ir is it just apple being "innovative" again?
l

louiscad

08/26/2021, 2:47 PM
Apple just names it "macOS" for consistency (with "iOS", "watchOS", "iPadOS", and "tvOS"), and to be independent from further releases. The X in Mac OS X stood for 10, because it was a big leap from Mac OS 9. They kept on 10.x releases for years and years, until they moved to macOS 11.x in Big Sur, and Monterey will be 12.x this Fall. So, saying "macOS" is simpler 🙂
The "XI" was just me making up the Roman numerals 😄
b

Big Chungus

08/26/2021, 2:48 PM
Gotcha