Skip to content

Commit bbfcee4

Browse files
Add GitHub Actions workflow for KiCad DRC and export
1 parent c4c1d63 commit bbfcee4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: KiCad DRC and 3D export
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pmod/**'
7+
paths-ignore:
8+
- 'pmod/assets/**'
9+
- 'pmod/template/**'
10+
pull_request:
11+
paths:
12+
- 'pmod/**'
13+
paths-ignore:
14+
- 'pmod/assets/**'
15+
- 'pmod/template/**'
16+
17+
jobs:
18+
kicad_checks:
19+
runs-on: ubuntu-latest
20+
name: KiCad DRC and 3D Export
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Find KiCad projects
26+
id: find_projects
27+
run: |
28+
echo "Searching for KiCad projects in pmod directory..."
29+
PROJECTS=$(find pmod -name "*.kicad_pro" -path "*/KiCad/*" | sed 's|/KiCad/.*\.kicad_pro||' | sort -u)
30+
echo "Found projects: $PROJECTS"
31+
echo "projects=$PROJECTS" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)