Skip to content

Update README.md

Update README.md #6

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CI_TMP_PATH: ci_tmp
KIBOT_CMD_PREFIX: "kibot -e pcb/mouse.kicad_sch -b pcb/mouse.kicad_pcb -d ci_tmp -c pcb/ci/config.kibot.yml"
jobs:
# Electrical rules check
erc:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad6_auto:latest
steps:
- uses: actions/checkout@v3
- name: Run ERC
run: |
${{ env.KIBOT_CMD_PREFIX }} -s update_xml,run_erc -i
- name: Retrieve results
uses: actions/upload-artifact@v1
with:
name: erc_output
path: ${{ env.CI_TMP_PATH }}
# Design rules check
drc:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad6_auto:latest
needs: erc
steps:
- uses: actions/checkout@v3
- name: Run DRC
run: |
${{ env.KIBOT_CMD_PREFIX }} -s update_xml,run_drc -i
- name: Retrieve results
uses: actions/upload-artifact@v1
with:
name: drc_output
path: ${{ env.CI_TMP_PATH }}
# Generate pdf schematics
schematics:
name: Schematic fabrication files
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad6_auto:latest
needs: erc
steps:
- uses: actions/checkout@v3
- name: Run schematic stuff
run: |
${{ env.KIBOT_CMD_PREFIX }} -s run_erc,run_drc print_sch print_pcb_top print_pcb_bottom
- name: Retrieve results
uses: actions/upload-artifact@v1
with:
name: schematics_output
path: ${{ env.CI_TMP_PATH }}
- name: Release to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.CI_TMP_PATH }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Generate fabrication files
fabrication:
name: PCB fabrication files
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad6_auto:latest
needs: drc
steps:
- uses: actions/checkout@v3
- name: Run PCB stuff
run: |
${{ env.KIBOT_CMD_PREFIX }} -s all fabrication_files
- name: Retrieve results
uses: actions/upload-artifact@v1
with:
name: fabrication_output
path: ${{ env.CI_TMP_PATH }}
- name: Release to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.CI_TMP_PATH }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Generate BOM and "Pick and Place" files
assembly:
name: PCB assembly files
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad6_auto:latest
needs: fabrication
steps:
- uses: actions/checkout@v3
- name: Run PCB stuff
run: |
${{ env.KIBOT_CMD_PREFIX }} -s all pick_and_place bill_of_materials
- name: Retrieve results
uses: actions/upload-artifact@v1
with:
name: assembly_output
path: ${{ env.CI_TMP_PATH }}
- name: Release to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.CI_TMP_PATH }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}