RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.64k stars 1.65k forks source link

Adds GitHub Action to Build Raspbian Lite #786

Open theGOTOguy opened 3 months ago

theGOTOguy commented 3 months ago

This action uses entirely default settings, and disables stage3-stage5 builds. I was unable to get any of these builds to complete within the space constraints of the GitHub runners, but if they add disk space to their runners it may be possible to build these in the future.

Tested and confirmed working on a Raspberry Pi Zero W.

Completes #785

theGOTOguy commented 3 months ago

Updated dependency install and upload-artifact and checkout versions.

Build confirmed working: https://github.com/theGOTOguy/pi-gen/actions/runs/10175875697

usimd commented 2 weeks ago

FWIW, I've released a new version of pi-gen-action that includes a similar but more aggressive mechanism as in easimon/maximize-build-space.

With this option turned on (increase-runner-disk-size: true) I was able to build a full image up to stage5 on a free GH runner. If you're curious and maybe want to extend your change, have a look at the additional resources to free:

https://github.com/usimd/pi-gen-action/blob/afb6cdd932ef6e17cc3850ace040df9430325065/src/increase-runner-disk-size.ts#L13-L102