top | item 43329887

Ask HN: Using IceCC (Or Equivalent) for Distributed AOSP/LineageOS Builds?

1 points| sterness | 11 months ago

I’ve been trying to speed up my LineageOS builds with IceCC, but haven’t had much luck. I know the cluster itself works because I’ve used IceCC for Linux kernel builds. There’s an old script called icecc-create-android-env ( around 12 years old, https://github.com/ragner/icecream/blob/android-build/client/icecc-create-android-env ) floating around GitHub, but it doesn’t seem compatible with modern Android build systems. Has anyone here managed to get IceCC working reliably for AOSP or LineageOS? Or is there a newer or alternative solution for distributed building on multiple machines? Any pointers or experiences would be greatly appreciated!

2 comments

order

fensgrim|11 months ago

There's Incredibuild (paid), might be worth investigating if it fits your scenario (I have serious doubts it'll work with anything other than basic AOSP due to how lineage's ninja behaves during its early build phase of regenerating scripts from .mk/bp's).

Mind if I ask what's your current record on build time for single device/buildtype combination's systemimage on a single node?

sterness|11 months ago

Its taking 1 hour and 20 minutes to complete a full clean build on my single node.

In fact, I want to use Open Source tools for this purpose, a commercial solution is not an option tbh.

Thanks for suggesting Incredibuild, as I make a fast search, I see that there may be some open source alternatives (eg. FASTBuild) to Incredibuild but not sure this can be used to build the LineageOS.