From 6428e863eea273cb04401d2f16ca26bea28b3dd6 Mon Sep 17 00:00:00 2001 From: Leo B Date: Wed, 1 Dec 2021 21:21:59 +0100 Subject: [PATCH] First try at full autorouting circle --- .github/actions/export-dsn/action.yml | 13 ++----------- .github/workflows/build.yml | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/actions/export-dsn/action.yml b/.github/actions/export-dsn/action.yml index ea82625..4506301 100644 --- a/.github/actions/export-dsn/action.yml +++ b/.github/actions/export-dsn/action.yml @@ -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 }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1aabf16..548eacc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: