Skip to content

Commit 0706e13

Browse files
committed
Update actions scripts manually.
1 parent 2b9f1ad commit 0706e13

File tree

2 files changed

+45
-39
lines changed

2 files changed

+45
-39
lines changed

.github/workflows/kicad_outputs.yml

+44-38
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
runs-on: ubuntu-latest
2828
continue-on-error: true
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
submodules: recursive
3333
token: ${{ secrets.pat }}
3434
ref: ${{ github.head_ref }}
3535

36-
- uses: INTI-CMNB/KiBot@v2_dk7
36+
- uses: INTI-CMNB/KiBot@v2_dk8
3737
with:
3838
config: ${{ env.kibot }}/erc.kibot.yaml
3939
schema: ${{ env.schema }}
@@ -45,13 +45,13 @@ jobs:
4545
runs-on: ubuntu-latest
4646
continue-on-error: true
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
submodules: recursive
5151
token: ${{ secrets.pat }}
5252
ref: ${{ github.head_ref }}
5353

54-
- uses: INTI-CMNB/KiBot@v2_dk7
54+
- uses: INTI-CMNB/KiBot@v2_dk8
5555
with:
5656
config: ${{ env.kibot }}/drc.kibot.yaml
5757
schema: ${{ env.schema }}
@@ -63,20 +63,20 @@ jobs:
6363
runs-on: ubuntu-latest
6464
continue-on-error: true
6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767
with:
6868
submodules: recursive
6969
token: ${{ secrets.pat }}
7070
ref: ${{ github.head_ref }}
7171

72-
- uses: INTI-CMNB/KiBot@v2_dk7
72+
- uses: INTI-CMNB/KiBot@v2_dk8
7373
with:
7474
config: ${{ env.kibot }}/schematics.kibot.yaml
7575
schema: ${{ env.schema }}
7676
board: ${{ env.board }}
7777
dir: ${{ env.dir }}_docs
7878

79-
- uses: actions/upload-artifact@v3
79+
- uses: actions/upload-artifact@v4
8080
if: ${{ success() }}
8181
with:
8282
name: doc_sch
@@ -87,41 +87,47 @@ jobs:
8787
runs-on: ubuntu-latest
8888
#continue-on-error: true
8989
steps:
90-
- uses: actions/checkout@v3
90+
- uses: actions/checkout@v4
9191
with:
9292
submodules: recursive
9393
token: ${{ secrets.pat }}
9494
ref: ${{ github.head_ref }}
9595

96-
- uses: INTI-CMNB/KiBot@v2_dk7
96+
- uses: INTI-CMNB/KiBot@v2_dk8
9797
with:
9898
config: ${{ env.kibot }}/placement.kibot.yaml
9999
schema: ${{ env.schema }}
100100
board: ${{ env.board }}
101101
dir: ${{ env.dir }}_docs
102102

103-
- uses: INTI-CMNB/KiBot@v2_dk7
103+
- uses: INTI-CMNB/KiBot@v2_dk8
104104
with:
105105
config: ${{ env.kibot }}/xml.kibot.yaml
106106
schema: ${{ env.schema }}
107107
board: ${{ env.board }}
108108
dir: ${{ env.dir }}_docs
109109

110-
- name: "Rename output"
110+
# - name: "Rename output"
111+
# run: |
112+
# for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
113+
# for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
114+
115+
- name: "Collect files"
111116
run: |
112-
for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
113-
for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
117+
tree
118+
mkdir doc_xml || true ;
119+
mv hw/sch_pcb/*.xml doc_xml/ || true;
120+
mv hw/out_docs/*.csv doc_xml/ || true;
114121
115-
- uses: actions/upload-artifact@v3
122+
- uses: actions/upload-artifact@v4
116123
if: ${{ success() }}
117124
with:
118125
name: doc_xml
119126
path: |
120-
hw/sch_pcb/*.xml
121-
hw/sch_pcb/*.csv
127+
doc_xml
122128
123129
# Zde se zahazuji debugovaci videa
124-
- uses: actions/upload-artifact@v3
130+
- uses: actions/upload-artifact@v4
125131
if: ${{ success() }}
126132
with:
127133
name: doc_placement
@@ -134,20 +140,20 @@ jobs:
134140
runs-on: ubuntu-latest
135141
#continue-on-error: true
136142
steps:
137-
- uses: actions/checkout@v3
143+
- uses: actions/checkout@v4
138144
with:
139145
submodules: recursive
140146
token: ${{ secrets.pat }}
141147
ref: ${{ github.head_ref }}
142148

143-
- uses: INTI-CMNB/KiBot@v2_dk7
149+
- uses: INTI-CMNB/KiBot@v2_dk8
144150
with:
145151
config: ${{ env.kibot }}/report.kibot.yaml
146152
schema: ${{ env.schema }}
147153
board: ${{ env.board }}
148154
dir: ${{ env.dir }}_report
149155

150-
- uses: actions/upload-artifact@v3
156+
- uses: actions/upload-artifact@v4
151157
if: ${{ success() }}
152158
with:
153159
name: doc_report
@@ -158,13 +164,13 @@ jobs:
158164
runs-on: ubuntu-latest
159165
continue-on-error: true
160166
steps:
161-
- uses: actions/checkout@v3
167+
- uses: actions/checkout@v4
162168
with:
163169
submodules: recursive
164170
token: ${{ secrets.pat }}
165171
ref: ${{ github.head_ref }}
166172

167-
- uses: INTI-CMNB/KiBot@v2_dk7
173+
- uses: INTI-CMNB/KiBot@v2_dk8
168174
with:
169175
config: ${{ env.kibot }}/ibom.kibot.yaml
170176
schema: ${{ env.schema }}
@@ -174,7 +180,7 @@ jobs:
174180
- name: "Rename output"
175181
run: for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
176182

177-
- uses: actions/upload-artifact@v3
183+
- uses: actions/upload-artifact@v4
178184
if: ${{ success() }}
179185
with:
180186
name: doc_ibom
@@ -187,13 +193,13 @@ jobs:
187193
runs-on: ubuntu-latest
188194
continue-on-error: true
189195
steps:
190-
- uses: actions/checkout@v3
196+
- uses: actions/checkout@v4
191197
with:
192198
submodules: recursive
193199
token: ${{ secrets.pat }}
194200
ref: ${{ github.head_ref }}
195201

196-
- uses: INTI-CMNB/KiBot@v2_dk7
202+
- uses: INTI-CMNB/KiBot@v2_dk8
197203
with:
198204
config: ${{ env.kibot }}/gerbers.kibot.yaml
199205
schema: ${{ env.schema }}
@@ -204,7 +210,7 @@ jobs:
204210
- name: "Rename output"
205211
run: for file in $(find ${{env.dir}}_gerbers -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" || true ; done
206212

207-
- uses: actions/upload-artifact@v2
213+
- uses: actions/upload-artifact@v4
208214
if: ${{ success() }}
209215
with:
210216
name: hw_cam_profi
@@ -216,34 +222,34 @@ jobs:
216222
runs-on: ubuntu-latest
217223
#continue-on-error: true
218224
steps:
219-
- uses: actions/checkout@v3
225+
- uses: actions/checkout@v4
220226
with:
221227
submodules: recursive
222228
token: ${{ secrets.pat }}
223229
ref: ${{ github.head_ref }}
224230

225-
- uses: INTI-CMNB/KiBot@v2_dk7
231+
- uses: INTI-CMNB/KiBot@v2_dk8
226232
with:
227233
config: ${{ env.kibot }}/cad.kibot.yaml
228234
schema: ${{ env.schema }}
229235
board: ${{ env.board }}
230236
dir: ${{ env.dir }}_cad
231237

232-
- uses: INTI-CMNB/KiBot@v2_dk7
238+
- uses: INTI-CMNB/KiBot@v2_dk8
233239
with:
234240
config: ${{ env.kibot }}/render.kibot.yaml
235241
schema: ${{ env.schema }}
236242
board: ${{ env.board }}
237243
dir: ${{ env.dir }}_img
238244
verbose: 3
239245

240-
- uses: actions/upload-artifact@v3
246+
- uses: actions/upload-artifact@v4
241247
if: ${{ success() }}
242248
with:
243249
name: doc_cad
244250
path: ${{ env.dir }}_cad/**
245251

246-
- uses: actions/upload-artifact@v3
252+
- uses: actions/upload-artifact@v4
247253
if: ${{ success() }}
248254
with:
249255
name: doc_img
@@ -255,7 +261,7 @@ jobs:
255261
name: Update repository
256262
needs: [graphics, gerbers, schematics, placement, report, ibom]
257263
steps:
258-
- uses: actions/checkout@v3
264+
- uses: actions/checkout@v4
259265
with:
260266
ref: ${{ github.head_ref }}
261267
token: ${{ secrets.pat }}
@@ -265,7 +271,7 @@ jobs:
265271
git submodule update --remote || true
266272
267273
- name: Download a Build Artifact
268-
uses: actions/download-artifact@v3.0.0
274+
uses: actions/download-artifact@v4
269275

270276
- name: Remove old manufarturing data
271277
run: |
@@ -283,21 +289,21 @@ jobs:
283289
mkdir hw || true
284290
mkdir hw/cam_profi || true
285291
mkdir hw/cam_profi/gbr || true
286-
mkdir hw/cam_profi/PnP || true
292+
mkdir hw/cam_profi/assembly || true
287293
mkdir hw/cam_profi/ibom || true
288294

289295
cp -r doc_img/* doc/gen/img || true
290296
cp -r doc_cad/cad/* doc/gen || true
291-
mv -r hw_cam_profi/PnP hw/cam_profi/PnP || true
292297
cp -r hw_cam_profi/* hw/cam_profi/gbr || true
293298
cp -r doc_sch/docs/* doc/gen || true
294299
cp -r doc_xml/* hw/cam_profi || true
295300
cp -r doc_sch/img/pcb/* doc/gen/img || true
296-
cp -r doc_placement/doc* hw/cam_profi || true
301+
mv -r doc_placement/PnP/* hw/cam_profi/assembly || true
302+
cp -r doc_placement/* hw/cam_profi/assembly || true
297303
cp -r doc_report/* doc/gen || true
298-
cp -r doc_ibom/docs/* hw/cam_profi/ibom || true
304+
cp -r doc_ibom/docs/* hw/cam_profi || true
299305

300-
mv hw/cam_profi/grb/PnP hw/cam_profi/PnP || true
306+
mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true
301307

302308
rm -r doc_img || true
303309
rm -r doc_cad || true

0 commit comments

Comments
 (0)