Igalia's post on self-hosting CI runners is a masterclass in build engineering. It shows dealing with weird API constraints, but still finding good designs.
I also learnt that some CI systems use OCR on Apple's installers to automate!
If I ever bootstrap a self hosting language, I'd be really tempted to do it in JS or TS.
Not only are JS runtimes widely available, but it'd be way easier to do in-browser playgrounds!