DRC check in github actions

This commit is contained in:
Tilman Baumann 2023-05-05 11:47:34 +01:00
parent bbd371ae78
commit 4bdb626ec8
3 changed files with 31 additions and 1 deletions

View File

@ -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 }}

20
.github/actions/run-drc/action.yml vendored Normal file
View 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 }}

View 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: