Skip to content

Commit 56c4abd

Browse files
committed
[Added] Example using dev branch
1 parent 00daeaf commit 56c4abd

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed

.github/workflows/test_using_dev.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Simple KiBot CI/CD test (dev)
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
# If any of the listed file changes we run the workflow
6+
on:
7+
push:
8+
paths:
9+
- 'kicad_ci_test.kicad_sch'
10+
- 'kicad_ci_test.kicad_pcb'
11+
- 'kicad_ci_test.kibot.yaml'
12+
- '.github/workflows/test1.yml'
13+
pull_request:
14+
paths:
15+
- 'kicad_ci_test.kicad_sch'
16+
- 'kicad_ci_test.kicad_pcb'
17+
- 'kicad_ci_test.kibot.yaml'
18+
- '.github/workflows/test1.yml'
19+
schedule:
20+
# Run on Wednesday @ 5:43 to keep the artifacts alive
21+
- cron: '43 5 * * 3'
22+
23+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
24+
jobs:
25+
ERC:
26+
runs-on: ubuntu-latest
27+
# Here use kicad8_auto:latest if you don't need all features, i.e. Blender render
28+
# You can use ghcr.io/inti-cmnb/kicad8_auto_full:dev to get the last fixes
29+
# In this case change "8" by the KiCad you need. Also don't forget to change this tag
30+
# once your project is finished, pointing to a stable KiBot release
31+
# Use the same for all steps
32+
container: ghcr.io/inti-cmnb/kicad8_auto:dev
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Run ERC
38+
run: |
39+
[ -f *.kicad_sch ] && kibot -d Fabrication -s update_xml,run_drc -i
40+
41+
- name: Retrieve results
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: ERC_Output
45+
path: Fabrication
46+
47+
DRC:
48+
runs-on: ubuntu-latest
49+
container: ghcr.io/inti-cmnb/kicad8_auto:dev
50+
needs: ERC
51+
52+
steps:
53+
- uses: actions/checkout@v4
54+
55+
- name: Run DRC
56+
run: |
57+
[ -f *.kicad_pcb ] && kibot -d Fabrication -s update_xml,erc -i
58+
59+
- name: Retrieve results
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: DRC_Output
63+
path: Fabrication
64+
65+
FabSch:
66+
name: Schematic fabrication files
67+
runs-on: ubuntu-latest
68+
container: ghcr.io/inti-cmnb/kicad8_auto:dev
69+
needs: ERC
70+
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Run schematic stuff
75+
run: |
76+
[ -f *.kicad_sch ] && kibot -d Fabrication -s drc,erc print_sch bom_html
77+
78+
- name: Retrieve results
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: FabSch_Output
82+
path: Fabrication
83+
84+
FabPCB:
85+
name: PCB fabrication files
86+
runs-on: ubuntu-latest
87+
# Here we need Blender so we use the full image
88+
container: ghcr.io/inti-cmnb/kicad8_auto_full:dev
89+
needs: DRC
90+
91+
steps:
92+
- uses: actions/checkout@v4
93+
94+
- name: Run PCB stuff
95+
run: |
96+
[ -f *.kicad_pcb ] && kibot -d Fabrication -s all print_front gerbers _blender_3d_top
97+
98+
- name: Retrieve results
99+
uses: actions/upload-artifact@v4
100+
with:
101+
name: FabPCB_Output
102+
path: Fabrication
103+
104+

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,11 @@ Another detail is how to checkout the submodules. One option is to use the *subm
9595
with:
9696
submodules: 'true'
9797
```
98+
99+
100+
## Example using development images
101+
102+
Sometimes a bug in KiBot might prevent using it. In this case report it [here](https://github.com/INTI-CMNB/KiBot/issues).
103+
104+
Once the bug is fixed you can use the dev (development) docker images. You just need to chage *latest* by *dev*
105+
The following example shows it: [.github/workflows/test_using_dev.yml](https://github.com/INTI-CMNB/kicad_ci_test/blob/master/.github/workflows/test_using_dev.yml)

0 commit comments

Comments
 (0)