Distributed compilation of esphome


I’m looking for a way to distribute esphome firmware compilation against multiple hosts. I’m known that is possible for C/C++ code (eg. with distccd), but their is a way with esphome ?

Thanks !

Really? It’s not a big job. Hardly worth the bother.

When you host esphome on a RPI and you have more than 20 devices, compile a new firmware for each of them could take more than one hour of CPU time. I think I could clearly reduce this time by distributed the compilation with my laptop’s CPU more than 10 times powerful than an RPI4’s CPU! So, no, I think my question is legit.

Install esphome on the more powerful machine then.

Yes I do see the problem on a pi. Perhaps a search for distributed compilation on platformio would reveal results.

1 Like