@@ -21,20 +21,20 @@ jobs:
21
21
" metroesp32s2" , "feather_esp32s2",
22
22
" feather_esp32s2_tft" , "feather_esp32s2_reverse_tft",
23
23
" feather_esp32s3" , "feather_esp32s3_4mbflash_2mbpsram",
24
- " feather_esp32s3_tft" , "qtpy_esp32s3",
24
+ " feather_esp32s3_tft" , "qtpy_esp32s3",
25
25
" qtpy_esp32s2" , "feather_esp32s3_reverse_tft",
26
26
" qtpy_esp32s3_n4r2" ]
27
27
steps :
28
- - uses : actions/setup-python@v1
28
+ - uses : actions/setup-python@v4
29
29
with :
30
30
python-version : ' 3.x'
31
- - uses : actions/checkout@v2
31
+ - uses : actions/checkout@v4
32
32
- name : Get WipperSnapper version
33
33
run : |
34
34
git fetch --prune --unshallow --tags
35
35
git describe --dirty --tags
36
36
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
37
- - uses : actions/checkout@v2
37
+ - uses : actions/checkout@v4
38
38
with :
39
39
repository : brentru/ci-arduino
40
40
path : ci
68
68
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
69
69
mv examples/*/build/*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
70
70
- name : upload build artifacts
71
- uses : actions/upload-artifact@v2
71
+ uses : actions/upload-artifact@v3
72
72
with :
73
73
name : build-files
74
74
path : |
@@ -87,21 +87,21 @@ jobs:
87
87
- offset : " 0x0"
88
88
arduino-platform : " qtpy_esp32c3"
89
89
steps :
90
- - uses : actions/setup-python@v1
90
+ - uses : actions/setup-python@v4
91
91
with :
92
92
python-version : ' 3.x'
93
- - uses : actions/checkout@v2
93
+ - uses : actions/checkout@v4
94
94
- name : Get WipperSnapper version
95
95
run : |
96
96
git fetch --prune --unshallow --tags
97
97
git describe --dirty --tags
98
98
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
99
- - uses : actions/checkout@v2
99
+ - uses : actions/checkout@v4
100
100
with :
101
101
repository : brentru/ci-arduino
102
102
path : ci
103
103
- name : Checkout Board Definitions
104
- uses : actions/checkout@v2
104
+ uses : actions/checkout@v4
105
105
with :
106
106
repository : adafruit/Wippersnapper_Boards
107
107
path : ws-boards
@@ -128,7 +128,7 @@ jobs:
128
128
mv examples/Wippersnapper_demo/build/*/Wippersnapper_demo.ino.partitions.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin
129
129
- name : Check boot_app0 file existence (esp32 built from core, not-source)
130
130
id : check_files
131
- uses : andstor/file-existence-action@v1
131
+ uses : andstor/file-existence-action@v2
132
132
with :
133
133
files : " /home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin"
134
134
- name : boot_app0 file from arduino-cli core
@@ -142,12 +142,15 @@ jobs:
142
142
run : |
143
143
board_name=${{ matrix.arduino-platform }}
144
144
content=$(cat ws-boards/boards/${board_name//_/-}/definition.json)
145
- content="${content//'%'/'%25'}"
146
- content="${content//$'\n'/'%0A'}"
147
- content="${content//$'\r'/'%0D'}"
148
- echo "::set-output name=boardJson::$content"
145
+ {
146
+ echo 'boardJson<<EOF'
147
+ echo $content
148
+ echo EOF
149
+ } >> "$GITHUB_OUTPUT"
149
150
- name : Create combined binary using Esptool merge_bin
150
151
run : |
152
+ echo ${{ steps.get_board_json.outputs.boardJson }}
153
+ echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
151
154
python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge_bin \
152
155
--flash_mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \
153
156
--flash_freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \
@@ -161,7 +164,7 @@ jobs:
161
164
run : |
162
165
zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.*
163
166
- name : upload build artifacts zip
164
- uses : actions/upload-artifact@v2
167
+ uses : actions/upload-artifact@v3
165
168
with :
166
169
name : build-files
167
170
path : |
@@ -175,16 +178,16 @@ jobs:
175
178
matrix :
176
179
arduino-platform : ["pyportal_tinyusb", "metro_m4_airliftlite_tinyusb"]
177
180
steps :
178
- - uses : actions/setup-python@v1
181
+ - uses : actions/setup-python@v4
179
182
with :
180
183
python-version : ' 3.x'
181
- - uses : actions/checkout@v2
184
+ - uses : actions/checkout@v4
182
185
- name : Get WipperSnapper version
183
186
run : |
184
187
git fetch --prune --unshallow --tags
185
188
git describe --dirty --tags
186
189
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
187
- - uses : actions/checkout@v2
190
+ - uses : actions/checkout@v4
188
191
with :
189
192
repository : adafruit/ci-arduino
190
193
path : ci
@@ -203,7 +206,7 @@ jobs:
203
206
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
204
207
mv examples/*/build/*/Wippersnapper_demo.ino.hex wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
205
208
- name : upload build artifacts
206
- uses : actions/upload-artifact@v2
209
+ uses : actions/upload-artifact@v3
207
210
with :
208
211
name : build-files
209
212
path : |
@@ -218,16 +221,16 @@ jobs:
218
221
matrix :
219
222
arduino-platform : ["picow_rp2040_tinyusb"]
220
223
steps :
221
- - uses : actions/setup-python@v1
224
+ - uses : actions/setup-python@v4
222
225
with :
223
226
python-version : ' 3.x'
224
- - uses : actions/checkout@v2
227
+ - uses : actions/checkout@v4
225
228
- name : Get WipperSnapper version
226
229
run : |
227
230
git fetch --prune --unshallow --tags
228
231
git describe --dirty --tags
229
232
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
230
- - uses : actions/checkout@v2
233
+ - uses : actions/checkout@v4
231
234
with :
232
235
repository : adafruit/ci-arduino
233
236
path : ci
@@ -244,7 +247,7 @@ jobs:
244
247
run : |
245
248
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
246
249
- name : upload build artifacts
247
- uses : actions/upload-artifact@v2
250
+ uses : actions/upload-artifact@v3
248
251
with :
249
252
name : build-files
250
253
path : |
@@ -260,16 +263,16 @@ jobs:
260
263
matrix :
261
264
arduino-platform : ["mkrwifi1010", "nano_33_iot"]
262
265
steps :
263
- - uses : actions/setup-python@v1
266
+ - uses : actions/setup-python@v4
264
267
with :
265
268
python-version : ' 3.x'
266
- - uses : actions/checkout@v2
269
+ - uses : actions/checkout@v4
267
270
- name : Get WipperSnapper version
268
271
run : |
269
272
git fetch --prune --unshallow --tags
270
273
git describe --dirty --tags
271
274
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
272
- - uses : actions/checkout@v2
275
+ - uses : actions/checkout@v4
273
276
with :
274
277
repository : adafruit/ci-arduino
275
278
path : ci
@@ -292,16 +295,16 @@ jobs:
292
295
matrix :
293
296
arduino-platform : ["feather_esp8266"]
294
297
steps :
295
- - uses : actions/setup-python@v1
298
+ - uses : actions/setup-python@v4
296
299
with :
297
300
python-version : ' 3.x'
298
- - uses : actions/checkout@v2
301
+ - uses : actions/checkout@v4
299
302
- name : Get WipperSnapper version
300
303
run : |
301
304
git fetch --prune --unshallow --tags
302
305
git describe --dirty --tags
303
306
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
304
- - uses : actions/checkout@v2
307
+ - uses : actions/checkout@v4
305
308
with :
306
309
repository : adafruit/ci-arduino
307
310
path : ci
@@ -326,7 +329,7 @@ jobs:
326
329
run : |
327
330
zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.*
328
331
- name : upload build artifacts zip
329
- uses : actions/upload-artifact@v2
332
+ uses : actions/upload-artifact@v3
330
333
with :
331
334
name : build-files
332
335
path : |
@@ -343,16 +346,16 @@ jobs:
343
346
" feather_esp32s3_4mbflash_2mbpsram_dev" , "feather_esp32s3_tft_dev",
344
347
" feather_esp32s3_reverse_tft_dev" ]
345
348
steps :
346
- - uses : actions/setup-python@v1
349
+ - uses : actions/setup-python@v4
347
350
with :
348
351
python-version : ' 3.x'
349
- - uses : actions/checkout@v2
352
+ - uses : actions/checkout@v4
350
353
- name : Get WipperSnapper version
351
354
run : |
352
355
git fetch --prune --unshallow --tags
353
356
git describe --dirty --tags
354
357
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
355
- - uses : actions/checkout@v2
358
+ - uses : actions/checkout@v4
356
359
with :
357
360
repository : brentru/ci-arduino
358
361
path : ci
@@ -399,12 +402,12 @@ jobs:
399
402
runs-on : ubuntu-latest
400
403
needs : [build-samd, build-esp32, build-esp32sx, build-esp8266, build-samd-non-fs, build-rp2040]
401
404
steps :
402
- - uses : actions/setup-python@v1
405
+ - uses : actions/setup-python@v4
403
406
with :
404
407
python-version : ' 3.x'
405
- - uses : actions/checkout@v2
408
+ - uses : actions/checkout@v4
406
409
407
- - uses : actions/checkout@v2
410
+ - uses : actions/checkout@v4
408
411
with :
409
412
repository : adafruit/ci-arduino
410
413
path : ci
0 commit comments