Skip to content

Commit

Permalink
Switch routed board suffix to _autorouted
Browse files Browse the repository at this point in the history
  • Loading branch information
ceoloide committed Oct 16, 2023
1 parent c64742e commit 78adc88
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/actions/import-ses/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ runs:
for board in ${{ inputs.boards }};
do
echo Processing $board
if [ -e $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_routed.kicad_pcb ]; then
echo Cleaning up $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_routed.kicad_pcb
rm -f $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_routed.kicad_pcb
if [ -e $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_autorouted.kicad_pcb ]; then
echo Cleaning up $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_autorouted.kicad_pcb
rm -f $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_autorouted.kicad_pcb
fi
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}.kicad_pcb $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}.ses --output-file $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_routed.kicad_pcb;
/usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}.kicad_pcb $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}.ses --output-file $GITHUB_WORKSPACE/ergogen/output/pcbs/${board}_autorouted.kicad_pcb;
done
14 changes: 11 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ jobs:
run: npm install
- name: Generate unrouted PCBs with Ergogen (definition in package.json)
run: npm run build
- name: Run KiBot to generate images, gerbers for the plate files
- name: Run KiBot to generate images, gerbers for the plates
uses: ./.github/actions/kibot
with:
boards: frontplate backplate controller_overlay corney_island
boards: frontplate backplate controller_overlay
- name: Run KiBot to generate images, gerbers for the unrouted board
uses: ./.github/actions/kibot
with:
boards: corney_island
- name: Export DSN file for Freerouting
uses: ./.github/actions/export-dsn
with:
Expand All @@ -48,8 +52,12 @@ jobs:
uses: ./.github/actions/import-ses
with:
boards: corney_island
- name: Run KiBot to generate images, gerbers for the autorouted board
uses: ./.github/actions/kibot
with:
boards: corney_island_autorouted
- name: Persist output
uses: actions/upload-artifact@v3
with:
name: corney_island_unrouted
name: corney_island
path: ergogen/output
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ do
fi
if [ -e ergogen/output/pcbs/${board}.ses ]; then
echo "Import SES"
${container_cmd} run ${container_args} soundmonster/kicad-automation-scripts:latest /usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py ergogen/output/pcbs/${board}.kicad_pcb ergogen/output/pcbs/${board}.ses --output-file ergogen/output/pcbs/${board}_routed.kicad_pcb
${container_cmd} run ${container_args} soundmonster/kicad-automation-scripts:latest /usr/lib/python2.7/dist-packages/kicad-automation/pcbnew_automation/import_ses.py ergogen/output/pcbs/${board}.kicad_pcb ergogen/output/pcbs/${board}.ses --output-file ergogen/output/pcbs/${board}_autorouted.kicad_pcb
fi
if [ -e ergogen/output/pcbs/${board}_routed.kicad_pcb ]; then
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:latest kibot -b ergogen/output/pcbs/${board}_routed.kicad_pcb -c kibot/boards.kibot.yaml
if [ -e ergogen/output/pcbs/${board}_autorouted.kicad_pcb ]; then
${container_cmd} run ${container_args} ghcr.io/inti-cmnb/kicad7_auto:latest kibot -b ergogen/output/pcbs/${board}_autorouted.kicad_pcb -c kibot/boards.kibot.yaml
fi
done
Binary file modified ergogen/output/gerbers/backplate.zip
Binary file not shown.
Binary file modified ergogen/output/gerbers/controller_overlay.zip
Binary file not shown.
Binary file modified ergogen/output/gerbers/corney_island.zip
Binary file not shown.
Binary file not shown.
Binary file modified ergogen/output/gerbers/corney_island_manually_routed.zip
Binary file not shown.
Binary file removed ergogen/output/gerbers/corney_island_routed.zip
Binary file not shown.
Binary file modified ergogen/output/gerbers/frontplate.zip
Binary file not shown.

0 comments on commit 78adc88

Please sign in to comment.