Add missing actions

This commit is contained in:
Leo B 2021-12-01 21:23:25 +01:00
parent 6428e863ee
commit b9d9570970
2 changed files with 37 additions and 0 deletions

17
.github/actions/autoroute/action.yml vendored Normal file
View File

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

20
.github/actions/import-ses/action.yml vendored Normal file
View File

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