ci(hardware): headless KiCad ERC/DRC and schematic exports - #20
Merged
Conversation
Adds hardware/rev2/tools/kicad-check.sh — ERC on the rev2 schematic (--severity-error, exit on violations), DRC on every board that has an Edge.Cuts outline (rev1 today; rev2 auto-joins once stage-B layout exists, until then it is skipped with a visible message), and SVG/PDF exports of all rev2 sheets into the gitignored hardware/rev2/export/. .github/workflows/hardware-check.yml runs the same script in the kicad/kicad:10.0 image pinned by digest on every hardware/** change and uploads reports + exports as a workflow artifact, so the schematic can be inspected from any CI run. Verified locally with kicad-cli 10.0.3 and inside the container (linux/amd64): ERC 0 violations, rev1 DRC 0 violations, 9 sheets exported. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QU8EzuVKjCFbXraYenJVYa
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns
kicad-cliinto a CI gate for the hardware tree:hardware/rev2/tools/kicad-check.sh— ERC on the rev2 schematic, DRC on every board that has a board outline (rev1 now; rev2 joins automatically once the stage-B layout exists — until then it is skipped with a visible message rather than failing on a blank board), and SVG/PDF exports of all rev2 sheets into the gitignoredhardware/rev2/export/..github/workflows/hardware-check.yml— runs the same script inkicad/kicad:10.0(pinned by digest, constitution III) on everyhardware/**change and uploads reports + exports as a workflow artifact, so any CI run gives you the rendered schematic.Verification
kicad/kicad:10.0, linux/amd64 under emulation,--user root,HOME=/tmp): identical results — this is the exact CI path.🤖 Generated with Claude Code
https://claude.ai/code/session_01QU8EzuVKjCFbXraYenJVYa