Neo: fixed up script to point to the 'Fabrication' folder properly

Variants: able to use kibot variants, separate variants for: mech, sch,
and pcb outputs. This because a BOM variant does not affect the PCB, but it might affect the step file.
This commit is contained in:
ac
2025-04-29 21:29:05 +10:00
parent cf480237f5
commit ebee7ef48e
10 changed files with 201 additions and 99 deletions

View File

@@ -2,10 +2,13 @@
kibot:
version: 1
import:
- file: '../kibot.yaml'
preflight:
erc: true
update_xml: true
drc: true
# erc: true
# update_xml: true
# drc: true
set_text_variables:
- name: 'rev'
command: 'if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags | sed -e "s/\([r,R][0-9]\+\)*$//g"; else echo $CI_COMMIT_SHORT_SHA; fi'
@@ -31,14 +34,14 @@ outputs:
type: pdf_sch_print
dir: .
options:
output: "%f_%r_%i.%x"
output: "%f%v_%r_%i.%x"
- name: 'print_pcb'
comment: "Print Top and Bottom Copper+Silk"
type: pcb_print
dir: .
options:
output: "%f_%r_PCB.%x"
output: "%f%v_%r_PCB.%x"
pages:
- layers:
- layer: F.Cu
@@ -51,7 +54,7 @@ outputs:
- name: '_bom'
type: bom
dir: .
dir: /tmp
options:
columns:
- field: Value
@@ -70,14 +73,14 @@ outputs:
- field: References
name: refs
exclude_filter: ""
output: "%f_%r_%i.%x"
output: "%f%v_%r_%i.%x"
expand_text_vars: true
disable_run_by_default: true
- name: 'bom_csv'
type: bom
dir: .
extends: "_bom"
disable_run_by_default: _bom
options:
csv:
separator: ';'
@@ -89,6 +92,7 @@ outputs:
type: bom
dir: .
extends: '_bom'
disable_run_by_default: _bom
options:
xlsx:
# this is a relative path unfortunately
@@ -108,7 +112,7 @@ outputs:
type: step
dir: .
options:
output: '%f_%r.%x'
output: '%f%v_%r.%x'
download: false
subst_models: true
@@ -124,7 +128,7 @@ outputs:
download: false
download_lcsc: false
orthographic: true
output: 'PCB_%f_%r.%x'
output: 'PCB_%f%v_%r.%x'
show_components: 'none'
- name: 'pcba_render'
@@ -139,14 +143,14 @@ outputs:
zoom: -1
download_lcsc: false
orthographic: true
output: 'PCBA_%f_%r.%x'
output: 'PCBA_%f%v_%r.%x'
show_components: 'all'
- name: 'neo_position'
comment: "Pick and place"
type: position
options:
output: '%f_%r_cpl.%x'
output: '%f%v_%r_cpl.%x'
format: CSV
units: millimeters
separate_files_for_front_and_back: false
@@ -157,7 +161,7 @@ outputs:
type: stencil_3d
dir: '3D_Stencil'
options:
output: '%f_%r_%i.%x'
output: '%f%v_%r_%i.%x'
- name: 'diff_pcb'
comment: "Diff for visual comparison"
@@ -181,7 +185,7 @@ outputs:
type: ibom
dir: .
options:
output: '%f_%r_%i.%x'
output: '%f%v_%r_%i.%x'
dark_mode: true
- name: JLCPCB_gerbers
@@ -234,7 +238,7 @@ outputs:
metric_units: true
map: gerber
route_mode_for_oval_holes: false
output: "%f%i.%x"
output: "%f%v%i.%x"
- name: 'JLCPCB_compress'
comment: ZIP file for JLCPCB
@@ -245,29 +249,29 @@ outputs:
dest: /
- from_output: JLCPCB_drill
dest: /
output: '%f_%r_JLC.%x'
groups:
- name: pcb
outputs:
- JLCPCB_compress
- neo_position
- print_pcb
- stencil
- interactive_bom
- name: pcb_panel
outputs:
- JLCPCB_compress
- neo_position
- print_pcb
- step
- interactive_bom
- name: sch
outputs:
- bom_csv
- bom_xlsx
- print_sch
output: '%f%v_%r_JLC.%x'
# groups:
# - name: pcb
# outputs:
# - JLCPCB_compress
# - neo_position
# - print_pcb
# - stencil
# - interactive_bom
#
# - name: pcb_panel
# outputs:
# - JLCPCB_compress
# - neo_position
# - print_pcb
# - step
# - interactive_bom
#
# - name: sch
# outputs:
# - bom_csv
# - bom_xlsx
# - print_sch
...
definitions:
_KIBOT_POS_ENABLED: false