The #kicad -cli command is pretty neat (although it lacks better docs) I can now generate a pdf of the schematic and board in around 20 seconds on sourcehut builds with it. It currently outputs 3 pdfs which are manually merged together to make a single build artifact. https://builds.sr.ht/~martijnbraam/job/1166980