WIP: v2.9 with Battery Cutoff, Updated Analog Chain #33
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
# This is a basic workflow to help you get started with Actions | |
name: Design Rules Check | |
# Controls when the action will run. | |
on: | |
# Run when any design files are changed | |
push: | |
paths: | |
- '**.kicad_sch' | |
- '**.kicad_pcb' | |
- '**.kicad_pro' | |
- '.github/**.yml' | |
pull_request: | |
paths: | |
- '**.kicad_sch' | |
- '**.kicad_pcb' | |
- '**.kicad_pro' | |
- '.github/**.yml' | |
merge_group: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
#jobs: | |
erc: | |
runs-on: ubuntu-latest | |
container: docker.io/yaqwsx/kikit:nightly-v8 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: kicad-cli sch erc --severity-error --severity-warning --exit-code-violations GeoMCU.kicad_sch | |
name: Run ERC on Schematic | |
drc: | |
runs-on: ubuntu-latest | |
container: docker.io/yaqwsx/kikit:nightly-v8 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: kicad-cli pcb drc --schematic-parity --severity-error --severity-warning --exit-code-violations GeoMCU.kicad_pcb | |
name: Run DRC on Board | |
docs: | |
runs-on: ubuntu-latest | |
container: docker.io/kicad/kicad | |
steps: | |
- uses: actions/checkout@v4 | |
- run: mkdir -p docs/ | |
- name: Export Schematic PDF | |
run: kicad-cli sch export pdf GeoMCU.kicad_sch -o docs/GeoMCU-schematic.pdf | |
- name: Export Layout PDFs | |
run: | | |
mkdir -p docs/ | |
kicad-cli pcb export pdf --include-border-title GeoMCU.kicad_pcb -o docs/GeoMCU-F_Cu.pdf --layers="F.Cu,User.Drawings,User.Comments,Edge.Cuts" | |
kicad-cli pcb export pdf --include-border-title GeoMCU.kicad_pcb -o docs/GeoMCU-In1_Cu.pdf --layers="In1.Cu,User.Drawings,User.Comments,Edge.Cuts" | |
kicad-cli pcb export pdf --include-border-title GeoMCU.kicad_pcb -o docs/GeoMCU-In2_Cu.pdf --layers="In2.Cu,User.Drawings,User.Comments,Edge.Cuts" | |
kicad-cli pcb export pdf --include-border-title GeoMCU.kicad_pcb -o docs/GeoMCU-B_Cu.pdf --layers="B.Cu,User.Drawings,User.Comments,Edge.Cuts" --mirror | |
- name: Google Chat Notification | |
uses: SimonScholz/google-chat-action@main | |
if: always() | |
with: | |
title: PDF Exports | |
webhookUrl: ${{ secrets.PIGHARDWARE_GCHAT_WEBHOOK_URL }} | |
jobStatus: ${{ job.status }} | |
- name: Artifacts Upload | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Viewable Docs | |
path: docs |