Skip to content

Commit f0a7946

Browse files
committed
Add report output for DRC and ERC failures in KiCad CI workflow
1 parent 474ae52 commit f0a7946

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/kicad.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,18 @@ jobs:
2828
status=$?
2929
if [ $status -ne 0 ]; then
3030
echo "DRC failed with exit code $status"
31-
cat drc.rpt
3231
exit $status
3332
fi
3433
34+
- name: Cat DRC Report
35+
if: always()
36+
run: |
37+
if [ -f drc.rpt ]; then
38+
cat drc.rpt
39+
else
40+
echo "DRC report not found"
41+
fi
42+
3543
- name: Upload DRC Report
3644
uses: actions/upload-artifact@v4
3745
if: always()
@@ -58,10 +66,18 @@ jobs:
5866
status=$?
5967
if [ $status -ne 0 ]; then
6068
echo "ERC failed with exit code $status"
61-
cat erc.rpt
6269
exit $status
6370
fi
6471
72+
- name: Cat ERC Report
73+
if: always()
74+
run: |
75+
if [ -f erc.rpt ]; then
76+
cat erc.rpt
77+
else
78+
echo "ERC report not found"
79+
fi
80+
6581
- name: Upload ERC Report
6682
uses: actions/upload-artifact@v4
6783
if: always()

0 commit comments

Comments
 (0)