ffenix113 / zigbee_home

Project to provide functionality similar to ESPHome but for Zigbee instead of WiFi for nRF52
https://ffenix113.github.io/zigbee_home/
GNU General Public License v3.0
528 stars 10 forks source link

Setup CI to verify that all examples can be compiled to firmware #36

Open ffenix113 opened 7 months ago

ffenix113 commented 7 months ago

All examples that are present in the repo(as code, not a part of Docs or wiki pages) should be able to be compiled in some CI.

This would allow to guarantee that examples always have valid configuration and will build, providing a great experience.

Implementation should keep in mind that compiling the firmware can take ~a minute, and multiplied by a number of examples present.

ffenix113 commented 7 months ago

Tried setting up free VM in Oracle cloud to build firmwares with nRF SDK docker image, as with more than a couple of examples this process could take couple(or even tenth) of minutes at least and I don't want it to starve build minutes of this repo. Oracle VM used ~70-80% of CPU for virtualization, leaving ~20-25% for the build process, which resulted in a couple of seconds per object when building(multiply by ~300 objects).

Oracle amd64 VM is no go for this.