From 1b7a556cb3f499858e63053dd994f2300c44b56d Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Sat, 25 Feb 2023 19:20:12 +0100 Subject: [PATCH] Add CI scripts --- .builds/kicad.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .builds/kicad.yml diff --git a/.builds/kicad.yml b/.builds/kicad.yml new file mode 100644 index 0000000..df97e3c --- /dev/null +++ b/.builds/kicad.yml @@ -0,0 +1,21 @@ +image: alpine/edge +packages: + - kicad + - zip +sources: + - https://git.sr.ht/~martijnbraam/mosquitto-board +artifacts: + - mosquitto-board/build/pcb.pdf + - mosquitto-board/build/schematic.pdf + - gerbers.zip +tasks: + - test: | + cd mosquitto-board + mkdir build + kicad-cli sch export pdf --output build/schematic.pdf *.kicad_sch + kicad-cli pcb export pdf --output build/pcb.pdf *.kicad_pcb -l F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,B.Paste,F.SilkS,F.Mask,Edge.Cuts + mkdir build/gerbers + kicad-cli pcb export gerbers --output build/gerbers/ *.kicad_pcb + kicad-cli pcb export drill --output build/gerbers/ *.kicad_pcb + cd build/gerbers + zip -r ../../../gerbers.zip ./* -- 2.45.2