diff --git a/.github/actions/autoroute/action.yml b/.github/actions/autoroute/action.yml new file mode 100644 index 0000000..a2077fb --- /dev/null +++ b/.github/actions/autoroute/action.yml @@ -0,0 +1,17 @@ +name: 'Autoroute' +description: 'Autoroute a given DSN file to SES with FreeRouting' +inputs: + dsn_file: + description: 'Specctra DSN input file' + required: true + ses_file: + description: 'Specctra SES output file' + required: true +runs: + using: 'docker' + image: 'docker://soundmonster/freerouting_cli:v0.1.0' + entrypoint: '/bin/sh' + args: + - '-c' + - | + java -jar /opt/freerouting_cli.jar -de ${{ inputs.dsn_file }} -do ${{ inputs.ses_file }} diff --git a/.github/actions/import-ses/action.yml b/.github/actions/import-ses/action.yml new file mode 100644 index 0000000..30f695a --- /dev/null +++ b/.github/actions/import-ses/action.yml @@ -0,0 +1,20 @@ +name: 'Import SES to Kicad' +description: 'Import Specctra SES into a Kicad PCB' +inputs: + pcb_file: + description: 'Kicad pcbnew file' + required: true + ses_file: + description: 'Specctra SES file' + 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/import_ses.py ${{ inputs.pcb_file }} ${{ inputs.ses_file }}