Skip to content

Commit c3006d0

Browse files
committed
Cleanup and update project to KiCADv9.
1 parent 9bc6bb7 commit c3006d0

13 files changed

Lines changed: 20582 additions & 8586 deletions

.github/workflows/kicad_outputs.yml

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ on:
1010
- '**.kicad_pcb'
1111
- '**.kicad_sch'
1212
- '**.kicad_pro'
13-
- '**.yml'
14-
- 'doc/assets'
13+
- 'doc/assets/**'
14+
- '.github/workflows/*.yml'
15+
pull_request:
16+
paths:
17+
- '**.kicad_pcb'
18+
- '**.kicad_sch'
19+
- '**.kicad_pro'
20+
- 'doc/assets/**'
21+
- '.github/workflows/*.yml'
1522
workflow_dispatch:
1623

1724
env:
@@ -27,13 +34,13 @@ jobs:
2734
runs-on: ubuntu-latest
2835
continue-on-error: true
2936
steps:
30-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3138
with:
3239
submodules: recursive
3340
token: ${{ secrets.pat }}
3441
ref: ${{ github.head_ref }}
3542

36-
- uses: INTI-CMNB/KiBot@v2_dk8
43+
- uses: INTI-CMNB/KiBot@v2_dk9
3744
with:
3845
config: ${{ env.kibot }}/erc.kibot.yaml
3946
schema: ${{ env.schema }}
@@ -45,13 +52,13 @@ jobs:
4552
runs-on: ubuntu-latest
4653
continue-on-error: true
4754
steps:
48-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
4956
with:
5057
submodules: recursive
5158
token: ${{ secrets.pat }}
5259
ref: ${{ github.head_ref }}
5360

54-
- uses: INTI-CMNB/KiBot@v2_dk8
61+
- uses: INTI-CMNB/KiBot@v2_dk9
5562
with:
5663
config: ${{ env.kibot }}/drc.kibot.yaml
5764
schema: ${{ env.schema }}
@@ -63,20 +70,20 @@ jobs:
6370
runs-on: ubuntu-latest
6471
continue-on-error: true
6572
steps:
66-
- uses: actions/checkout@v3
73+
- uses: actions/checkout@v4
6774
with:
6875
submodules: recursive
6976
token: ${{ secrets.pat }}
7077
ref: ${{ github.head_ref }}
7178

72-
- uses: INTI-CMNB/KiBot@v2_dk8
79+
- uses: INTI-CMNB/KiBot@v2_dk9
7380
with:
7481
config: ${{ env.kibot }}/schematics.kibot.yaml
7582
schema: ${{ env.schema }}
7683
board: ${{ env.board }}
7784
dir: ${{ env.dir }}_docs
7885

79-
- uses: actions/upload-artifact@v3
86+
- uses: actions/upload-artifact@v4
8087
if: ${{ success() }}
8188
with:
8289
name: doc_sch
@@ -87,20 +94,20 @@ jobs:
8794
runs-on: ubuntu-latest
8895
#continue-on-error: true
8996
steps:
90-
- uses: actions/checkout@v3
97+
- uses: actions/checkout@v4
9198
with:
9299
submodules: recursive
93100
token: ${{ secrets.pat }}
94101
ref: ${{ github.head_ref }}
95102

96-
- uses: INTI-CMNB/KiBot@v2_dk8
103+
- uses: INTI-CMNB/KiBot@v2_dk9
97104
with:
98105
config: ${{ env.kibot }}/placement.kibot.yaml
99106
schema: ${{ env.schema }}
100107
board: ${{ env.board }}
101108
dir: ${{ env.dir }}_docs
102109

103-
- uses: INTI-CMNB/KiBot@v2_dk8
110+
- uses: INTI-CMNB/KiBot@v2_dk9
104111
with:
105112
config: ${{ env.kibot }}/xml.kibot.yaml
106113
schema: ${{ env.schema }}
@@ -119,15 +126,15 @@ jobs:
119126
mv hw/sch_pcb/*.xml doc_xml/ || true;
120127
mv hw/out_docs/*.csv doc_xml/ || true;
121128
122-
- uses: actions/upload-artifact@v3
129+
- uses: actions/upload-artifact@v4
123130
if: ${{ success() }}
124131
with:
125132
name: doc_xml
126133
path: |
127134
doc_xml
128135
129136
# Zde se zahazuji debugovaci videa
130-
- uses: actions/upload-artifact@v3
137+
- uses: actions/upload-artifact@v4
131138
if: ${{ success() }}
132139
with:
133140
name: doc_placement
@@ -140,20 +147,20 @@ jobs:
140147
runs-on: ubuntu-latest
141148
#continue-on-error: true
142149
steps:
143-
- uses: actions/checkout@v3
150+
- uses: actions/checkout@v4
144151
with:
145152
submodules: recursive
146153
token: ${{ secrets.pat }}
147154
ref: ${{ github.head_ref }}
148155

149-
- uses: INTI-CMNB/KiBot@v2_dk8
156+
- uses: INTI-CMNB/KiBot@v2_dk9
150157
with:
151158
config: ${{ env.kibot }}/report.kibot.yaml
152159
schema: ${{ env.schema }}
153160
board: ${{ env.board }}
154161
dir: ${{ env.dir }}_report
155162

156-
- uses: actions/upload-artifact@v3
163+
- uses: actions/upload-artifact@v4
157164
if: ${{ success() }}
158165
with:
159166
name: doc_report
@@ -164,13 +171,13 @@ jobs:
164171
runs-on: ubuntu-latest
165172
continue-on-error: true
166173
steps:
167-
- uses: actions/checkout@v3
174+
- uses: actions/checkout@v4
168175
with:
169176
submodules: recursive
170177
token: ${{ secrets.pat }}
171178
ref: ${{ github.head_ref }}
172179

173-
- uses: INTI-CMNB/KiBot@v2_dk8
180+
- uses: INTI-CMNB/KiBot@v2_dk9
174181
with:
175182
config: ${{ env.kibot }}/ibom.kibot.yaml
176183
schema: ${{ env.schema }}
@@ -180,7 +187,7 @@ jobs:
180187
- name: "Rename output"
181188
run: for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
182189

183-
- uses: actions/upload-artifact@v3
190+
- uses: actions/upload-artifact@v4
184191
if: ${{ success() }}
185192
with:
186193
name: doc_ibom
@@ -193,13 +200,13 @@ jobs:
193200
runs-on: ubuntu-latest
194201
continue-on-error: true
195202
steps:
196-
- uses: actions/checkout@v3
203+
- uses: actions/checkout@v4
197204
with:
198205
submodules: recursive
199206
token: ${{ secrets.pat }}
200207
ref: ${{ github.head_ref }}
201208

202-
- uses: INTI-CMNB/KiBot@v2_dk8
209+
- uses: INTI-CMNB/KiBot@v2_dk9
203210
with:
204211
config: ${{ env.kibot }}/gerbers.kibot.yaml
205212
schema: ${{ env.schema }}
@@ -210,7 +217,7 @@ jobs:
210217
- name: "Rename output"
211218
run: for file in $(find ${{env.dir}}_gerbers -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" || true ; done
212219

213-
- uses: actions/upload-artifact@v2
220+
- uses: actions/upload-artifact@v4
214221
if: ${{ success() }}
215222
with:
216223
name: hw_cam_profi
@@ -222,46 +229,47 @@ jobs:
222229
runs-on: ubuntu-latest
223230
#continue-on-error: true
224231
steps:
225-
- uses: actions/checkout@v3
232+
- uses: actions/checkout@v4
226233
with:
227234
submodules: recursive
228235
token: ${{ secrets.pat }}
229236
ref: ${{ github.head_ref }}
230237

231-
- uses: INTI-CMNB/KiBot@v2_dk8
238+
- uses: INTI-CMNB/KiBot@v2_dk9
232239
with:
233240
config: ${{ env.kibot }}/cad.kibot.yaml
234241
schema: ${{ env.schema }}
235242
board: ${{ env.board }}
236243
dir: ${{ env.dir }}_cad
237244

238-
- uses: INTI-CMNB/KiBot@v2_dk8
245+
- uses: INTI-CMNB/KiBot@v2_dk9
239246
with:
240247
config: ${{ env.kibot }}/render.kibot.yaml
241248
schema: ${{ env.schema }}
242249
board: ${{ env.board }}
243250
dir: ${{ env.dir }}_img
244251
verbose: 3
245252

246-
- uses: actions/upload-artifact@v3
253+
- uses: actions/upload-artifact@v4
247254
if: ${{ success() }}
248255
with:
249256
name: doc_cad
250257
path: ${{ env.dir }}_cad/**
251258

252-
- uses: actions/upload-artifact@v3
259+
- uses: actions/upload-artifact@v4
253260
if: ${{ success() }}
254261
with:
255262
name: doc_img
256263
path: ${{ env.dir }}_img/img/**
257264

258265

259266
UPDATE_REPO:
267+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
260268
runs-on: ubuntu-latest
261269
name: Update repository
262270
needs: [graphics, gerbers, schematics, placement, report, ibom]
263271
steps:
264-
- uses: actions/checkout@v3
272+
- uses: actions/checkout@v4
265273
with:
266274
ref: ${{ github.head_ref }}
267275
token: ${{ secrets.pat }}
@@ -271,7 +279,7 @@ jobs:
271279
git submodule update --remote || true
272280
273281
- name: Download a Build Artifact
274-
uses: actions/download-artifact@v3.0.0
282+
uses: actions/download-artifact@v4
275283

276284
- name: Remove old manufarturing data
277285
run: |
@@ -318,5 +326,5 @@ jobs:
318326

319327
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
320328
with:
321-
commit_message: Update actions products
329+
commit_message: Automatic update of KiCAD outputs
322330
add_options: '-A -f'
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Assets
2+
3+
permissions: write-all
4+
5+
on:
6+
release:
7+
types: [edited, prereleased, released]
8+
9+
jobs:
10+
upload-gerber-assets:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up variables
18+
run: |
19+
REPO_NAME=$(basename -s .git `git config --get remote.origin.url`)
20+
COMMIT_SHA=$(git rev-parse --short HEAD)
21+
ZIP_NAME="${REPO_NAME}-${COMMIT_SHA}.gerber.zip"
22+
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_ENV
23+
24+
- name: Create ZIP archive of Gerber files
25+
run: |
26+
zip -j ${{ env.ZIP_NAME }} hw/cam_profi/gbr/*
27+
28+
- name: Upload ZIP as release asset
29+
uses: actions/upload-release-asset@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
upload_url: ${{ github.event.release.upload_url }}
34+
asset_path: ${{ env.ZIP_NAME }}
35+
asset_name: ${{ env.ZIP_NAME }}
36+
asset_content_type: application/zip

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11

2-
*-backups
3-
*-save.kicad_pcb
4-
*-save.pro
2+
*~
53
*.000
4+
_autosave-*
5+
*auto_saved_files#
6+
*backup*
7+
*-backups
68
*.bak
79
*.bck
810
*.dsn
11+
*fp-info-cache
12+
fp-info-cache
913
*.kicad_pcb-bak
1014
*.kicad_prl
1115
*.kicad_sch-bak
1216
*.lck
1317
*.orig
18+
*-save.kicad_pcb
19+
*-save.pro
1420
*.sch-bak
1521
*.ses
1622
*.tmp
17-
*auto_saved_files#
18-
*backup*
19-
*fp-info-cache
20-
*~
21-
_autosave-*
22-
fp-info-cache

doc/assets

File renamed without changes.

0 commit comments

Comments
 (0)