KiBot #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2022 nerdyscout <https://github.com/nerdyscout/> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
name: KiBot | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
board: | ||
required: true | ||
env: | ||
name: ${{ github.event.inputs.board }} | ||
schema: "${{ github.event.inputs.board }}/*.kicad_sch" | ||
board: "${{ github.event.inputs.board }}/*.kicad_pcb" | ||
dir: . | ||
container_name: setsoft/kicad_auto:ki7 | ||
jobs: | ||
# checks | ||
ERC: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ env.container_name }} | ||
Check failure on line 25 in .github/workflows/kibot.yml GitHub Actions / KiBotInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_drc -v -i | ||
DRC: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ env.container_name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc -v -i | ||
# documentation | ||
docs: | ||
runs-on: ubuntu-latest | ||
needs: [ERC] | ||
container: | ||
image: ${{ env.container_name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc,run_drc -v \ | ||
ibom.html octopart.csv schematic.pdf schematic.svg board_top.pdf board_bottom.pdf | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{success()}} | ||
with: | ||
name: ${{env.name}}_docs | ||
if-no-files-found: error | ||
path: | | ||
${{env.dir}}/docs/** | ||
!${{env.dir}}/**/*.ogv | ||
!${{env.dir}}/**/*.log | ||
# fabrications | ||
gerbers: | ||
runs-on: ubuntu-latest | ||
needs: [DRC] | ||
container: | ||
image: ${{ env.container_name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc,run_drc -v \ | ||
gerbers.gbr drills.gbr drills.drl pickandplace.csv bom.csv | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{success()}} | ||
with: | ||
name: ${{env.name}}_gerbers | ||
if-no-files-found: error | ||
path: | | ||
${{env.dir}}/gerbers/** | ||
!${{env.dir}}/**/*.ogv | ||
!${{env.dir}}/**/*.log | ||
# cad | ||
cad: | ||
runs-on: ubuntu-latest | ||
needs: [DRC] | ||
container: | ||
image: ${{ env.container_name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc,run_drc -v \ | ||
model.step openboardview.brd autocad.dxf | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{success()}} | ||
with: | ||
name: ${{env.name}}_cad | ||
if-no-files-found: error | ||
path: | | ||
${{env.dir}}/cad/** | ||
!${{env.dir}}/**/*.ogv | ||
!${{env.dir}}/**/*.log | ||
# images | ||
render: | ||
runs-on: ubuntu-latest | ||
needs: [DRC] | ||
container: | ||
image: ${{ env.container_name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: run kibot | ||
run: | | ||
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc,run_drc -v \ | ||
board_black_top.svg board_black_bottom.svg | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{success()}} | ||
with: | ||
name: ${{env.name}}_img | ||
if-no-files-found: error | ||
path: | | ||
${{env.dir}}/img/** | ||
!${{env.dir}}/**/*.ogv | ||
!${{env.dir}}/**/*.log |