~martijnbraam/mosquitto-board

1b7a556cb3f499858e63053dd994f2300c44b56d — Martijn Braam 1 year, 6 months ago 001531d
Add CI scripts
1 files changed, 21 insertions(+), 0 deletions(-)

A .builds/kicad.yml
A .builds/kicad.yml => .builds/kicad.yml +21 -0
@@ 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 ./*