commit
b994299417
|
@ -39,7 +39,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install kicad
|
- name: Install kicad
|
||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
|
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
|
||||||
sudo apt-get install kicad
|
sudo apt-get install kicad
|
||||||
pip install kicad-netlist-reader
|
pip install kicad-netlist-reader
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,8 @@ echo Export positions file
|
||||||
kicad-cli pcb export pos --format csv --units mm --use-drill-file-origin --bottom-negate-x "$PCB_FILE" -o "gerber/$IN-all-pos.csv"
|
kicad-cli pcb export pos --format csv --units mm --use-drill-file-origin --bottom-negate-x "$PCB_FILE" -o "gerber/$IN-all-pos.csv"
|
||||||
|
|
||||||
echo Getting Drill/Place origin from PCB
|
echo Getting Drill/Place origin from PCB
|
||||||
X=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 3)
|
X=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 3)
|
||||||
Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')')
|
Y=$(grep "aux_axis_origin" "$PCB_FILE" | tr ' ' ' ' | tr -s ' ' | cut -d ' ' -f 4 | tr -d ')')
|
||||||
if [ ! "$Y" ]; then
|
if [ ! "$Y" ]; then
|
||||||
echo "aux_axis_origin is missing in the PCB file"
|
echo "aux_axis_origin is missing in the PCB file"
|
||||||
exit -1
|
exit -1
|
||||||
|
|
Loading…
Reference in New Issue