First try at full autorouting circle

This commit is contained in:
Leo B 2021-12-01 21:21:59 +01:00
parent 6cd66f4fc7
commit 6428e863ee
2 changed files with 14 additions and 15 deletions

View File

@ -13,17 +13,8 @@ runs:
entrypoint: '/bin/sh'
args:
- '-c'
# - '/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/export_dsn.py "$GITHUB_WORKSPACE/${{ inputs.pcb_file }}" "$GITHUB_WORKSPACE/${{ inputs.dsn_file }}"'
# - |
# apt-get update ;
# apt-get install -y strace ;
# sed -i "s/\['pcbnew', pcb_file\]/\['strace', 'pcbnew', pcb_file\]/" /usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/export_dsn.py ;
# GH actions set $HOME to a weird location and we have to move Kicad settings there first
- |
env ;
echo ;
mkdir -p $HOME/.config/kicad ;
cp /root/.config/kicad/* $HOME/.config/kicad ;
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/export_dsn.py /github/workspace/${{ inputs.pcb_file }} /github/workspace/${{ inputs.dsn_file }} --record ;
cp /tmp/export_dsn_screencast.ogv /github/workspace/output/ ;
exit 0
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/export_dsn.py ${{ inputs.pcb_file }} ${{ inputs.dsn_file }}

View File

@ -2,11 +2,9 @@ on: [push, pull_request, workflow_dispatch]
name: Build
jobs:
ergogen:
generate:
runs-on: ubuntu-latest
# container:
# image: node:17.1
name: Ergogen
name: Generate
steps:
- name: Checkout
uses: actions/checkout@v2
@ -23,6 +21,16 @@ jobs:
with:
pcb_file: output/pcbs/board.kicad_pcb
dsn_file: output/pcbs/board.dsn
- name: Autoroute main PCB
uses: ./.github/actions/autoroute
with:
dsn_file: output/pcbs/board.dsn
ses_file: output/pcbs/board.ses
- name: Import SES into main PCB
uses: ./.github/actions/import-ses
with:
pcb_file: output/pcbs/board.kicad_pcb
ses_file: output/pcbs/board.ses
- name: Persist output
uses: actions/upload-artifact@v2
with: