DRC check in github actions
This commit is contained in:
parent
bbd371ae78
commit
4bdb626ec8
|
|
@ -21,4 +21,3 @@ runs:
|
|||
mkdir -p $HOME/.config/kicad ;
|
||||
cp /root/.config/kicad/* $HOME/.config/kicad ;
|
||||
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py $GITHUB_WORKSPACE/${{ inputs.pcb_input_file }} $GITHUB_WORKSPACE/${{ inputs.ses_file }} --output-file $GITHUB_WORKSPACE/${{ inputs.pcb_output_file }};
|
||||
#ls -lh $GITHUB_WORKSPACE/${{ inputs.pcb_input_file }} $GITHUB_WORKSPACE/${{ inputs.ses_file }}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
name: 'Run DRC'
|
||||
description: 'Run Design Rules Check on generated PCB'
|
||||
inputs:
|
||||
pcb_input_file:
|
||||
description: 'Kicad input file'
|
||||
required: true
|
||||
drc_output:
|
||||
description: 'DRC output'
|
||||
required: true
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'docker://soundmonster/kicad-automation-scripts:latest'
|
||||
entrypoint: '/bin/sh'
|
||||
args:
|
||||
- '-c'
|
||||
# GH actions set $HOME to a weird location and we have to move Kicad settings there first
|
||||
- |
|
||||
mkdir -p $HOME/.config/kicad ;
|
||||
cp /root/.config/kicad/* $HOME/.config/kicad ;
|
||||
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/run_drc.py $GITHUB_WORKSPACE/${{ inputs.pcb_input_file }} $GITHUB_WORKSPACE/${{ inputs.drc_file }}
|
||||
|
|
@ -48,6 +48,17 @@ jobs:
|
|||
pcb_input_file: output/pcbs/right.kicad_pcb
|
||||
pcb_output_file: output/pcbs/right_routed.kicad_pcb
|
||||
ses_file: output/pcbs/right.ses
|
||||
- name: Left board DRC check
|
||||
uses: ./.github/actions/run-drc
|
||||
with:
|
||||
pcb_input_file: output/pcbs/left_routed.kicad_pcb
|
||||
drc_output: output/pcbs/left-drc/
|
||||
- name: Right board DRC check
|
||||
uses: ./.github/actions/run-drc
|
||||
with:
|
||||
pcb_input_file: output/pcbs/right_routed.kicad_pcb
|
||||
drc_output: output/pcbs/right-drc/
|
||||
|
||||
- name: Export Gerbers for Left PCB
|
||||
uses: ./.github/actions/export-gerbers
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in New Issue