Skip to content

Commit d5a134b

Browse files
authored
Merge pull request #508 from brentru/remove-dep-warning
Remove depreciation warnings on Actions
2 parents 1922364 + 232c23e commit d5a134b

File tree

1 file changed

+39
-36
lines changed

1 file changed

+39
-36
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
"metroesp32s2", "feather_esp32s2",
2222
"feather_esp32s2_tft", "feather_esp32s2_reverse_tft",
2323
"feather_esp32s3", "feather_esp32s3_4mbflash_2mbpsram",
24-
"feather_esp32s3_tft", "qtpy_esp32s3",
24+
"feather_esp32s3_tft", "qtpy_esp32s3",
2525
"qtpy_esp32s2", "feather_esp32s3_reverse_tft",
2626
"qtpy_esp32s3_n4r2"]
2727
steps:
28-
- uses: actions/setup-python@v1
28+
- uses: actions/setup-python@v4
2929
with:
3030
python-version: '3.x'
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232
- name: Get WipperSnapper version
3333
run: |
3434
git fetch --prune --unshallow --tags
3535
git describe --dirty --tags
3636
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
with:
3939
repository: brentru/ci-arduino
4040
path: ci
@@ -68,7 +68,7 @@ jobs:
6868
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
6969
mv examples/*/build/*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
7070
- name: upload build artifacts
71-
uses: actions/upload-artifact@v2
71+
uses: actions/upload-artifact@v3
7272
with:
7373
name: build-files
7474
path: |
@@ -87,21 +87,21 @@ jobs:
8787
- offset: "0x0"
8888
arduino-platform: "qtpy_esp32c3"
8989
steps:
90-
- uses: actions/setup-python@v1
90+
- uses: actions/setup-python@v4
9191
with:
9292
python-version: '3.x'
93-
- uses: actions/checkout@v2
93+
- uses: actions/checkout@v4
9494
- name: Get WipperSnapper version
9595
run: |
9696
git fetch --prune --unshallow --tags
9797
git describe --dirty --tags
9898
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
99-
- uses: actions/checkout@v2
99+
- uses: actions/checkout@v4
100100
with:
101101
repository: brentru/ci-arduino
102102
path: ci
103103
- name: Checkout Board Definitions
104-
uses: actions/checkout@v2
104+
uses: actions/checkout@v4
105105
with:
106106
repository: adafruit/Wippersnapper_Boards
107107
path: ws-boards
@@ -128,7 +128,7 @@ jobs:
128128
mv examples/Wippersnapper_demo/build/*/Wippersnapper_demo.ino.partitions.bin wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin
129129
- name: Check boot_app0 file existence (esp32 built from core, not-source)
130130
id: check_files
131-
uses: andstor/file-existence-action@v1
131+
uses: andstor/file-existence-action@v2
132132
with:
133133
files: "/home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin"
134134
- name: boot_app0 file from arduino-cli core
@@ -142,12 +142,15 @@ jobs:
142142
run: |
143143
board_name=${{ matrix.arduino-platform }}
144144
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"
149150
- name: Create combined binary using Esptool merge_bin
150151
run: |
152+
echo ${{ steps.get_board_json.outputs.boardJson }}
153+
echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
151154
python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge_bin \
152155
--flash_mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \
153156
--flash_freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \
@@ -161,7 +164,7 @@ jobs:
161164
run: |
162165
zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.*
163166
- name: upload build artifacts zip
164-
uses: actions/upload-artifact@v2
167+
uses: actions/upload-artifact@v3
165168
with:
166169
name: build-files
167170
path: |
@@ -175,16 +178,16 @@ jobs:
175178
matrix:
176179
arduino-platform: ["pyportal_tinyusb", "metro_m4_airliftlite_tinyusb"]
177180
steps:
178-
- uses: actions/setup-python@v1
181+
- uses: actions/setup-python@v4
179182
with:
180183
python-version: '3.x'
181-
- uses: actions/checkout@v2
184+
- uses: actions/checkout@v4
182185
- name: Get WipperSnapper version
183186
run: |
184187
git fetch --prune --unshallow --tags
185188
git describe --dirty --tags
186189
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
187-
- uses: actions/checkout@v2
190+
- uses: actions/checkout@v4
188191
with:
189192
repository: adafruit/ci-arduino
190193
path: ci
@@ -203,7 +206,7 @@ jobs:
203206
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
204207
mv examples/*/build/*/Wippersnapper_demo.ino.hex wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
205208
- name: upload build artifacts
206-
uses: actions/upload-artifact@v2
209+
uses: actions/upload-artifact@v3
207210
with:
208211
name: build-files
209212
path: |
@@ -218,16 +221,16 @@ jobs:
218221
matrix:
219222
arduino-platform: ["picow_rp2040_tinyusb"]
220223
steps:
221-
- uses: actions/setup-python@v1
224+
- uses: actions/setup-python@v4
222225
with:
223226
python-version: '3.x'
224-
- uses: actions/checkout@v2
227+
- uses: actions/checkout@v4
225228
- name: Get WipperSnapper version
226229
run: |
227230
git fetch --prune --unshallow --tags
228231
git describe --dirty --tags
229232
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
230-
- uses: actions/checkout@v2
233+
- uses: actions/checkout@v4
231234
with:
232235
repository: adafruit/ci-arduino
233236
path: ci
@@ -244,7 +247,7 @@ jobs:
244247
run: |
245248
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
246249
- name: upload build artifacts
247-
uses: actions/upload-artifact@v2
250+
uses: actions/upload-artifact@v3
248251
with:
249252
name: build-files
250253
path: |
@@ -260,16 +263,16 @@ jobs:
260263
matrix:
261264
arduino-platform: ["mkrwifi1010", "nano_33_iot"]
262265
steps:
263-
- uses: actions/setup-python@v1
266+
- uses: actions/setup-python@v4
264267
with:
265268
python-version: '3.x'
266-
- uses: actions/checkout@v2
269+
- uses: actions/checkout@v4
267270
- name: Get WipperSnapper version
268271
run: |
269272
git fetch --prune --unshallow --tags
270273
git describe --dirty --tags
271274
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
272-
- uses: actions/checkout@v2
275+
- uses: actions/checkout@v4
273276
with:
274277
repository: adafruit/ci-arduino
275278
path: ci
@@ -292,16 +295,16 @@ jobs:
292295
matrix:
293296
arduino-platform: ["feather_esp8266"]
294297
steps:
295-
- uses: actions/setup-python@v1
298+
- uses: actions/setup-python@v4
296299
with:
297300
python-version: '3.x'
298-
- uses: actions/checkout@v2
301+
- uses: actions/checkout@v4
299302
- name: Get WipperSnapper version
300303
run: |
301304
git fetch --prune --unshallow --tags
302305
git describe --dirty --tags
303306
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
304-
- uses: actions/checkout@v2
307+
- uses: actions/checkout@v4
305308
with:
306309
repository: adafruit/ci-arduino
307310
path: ci
@@ -326,7 +329,7 @@ jobs:
326329
run: |
327330
zip -r wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.zip wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.*
328331
- name: upload build artifacts zip
329-
uses: actions/upload-artifact@v2
332+
uses: actions/upload-artifact@v3
330333
with:
331334
name: build-files
332335
path: |
@@ -343,16 +346,16 @@ jobs:
343346
"feather_esp32s3_4mbflash_2mbpsram_dev", "feather_esp32s3_tft_dev",
344347
"feather_esp32s3_reverse_tft_dev"]
345348
steps:
346-
- uses: actions/setup-python@v1
349+
- uses: actions/setup-python@v4
347350
with:
348351
python-version: '3.x'
349-
- uses: actions/checkout@v2
352+
- uses: actions/checkout@v4
350353
- name: Get WipperSnapper version
351354
run: |
352355
git fetch --prune --unshallow --tags
353356
git describe --dirty --tags
354357
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
355-
- uses: actions/checkout@v2
358+
- uses: actions/checkout@v4
356359
with:
357360
repository: brentru/ci-arduino
358361
path: ci
@@ -399,12 +402,12 @@ jobs:
399402
runs-on: ubuntu-latest
400403
needs: [build-samd, build-esp32, build-esp32sx, build-esp8266, build-samd-non-fs, build-rp2040]
401404
steps:
402-
- uses: actions/setup-python@v1
405+
- uses: actions/setup-python@v4
403406
with:
404407
python-version: '3.x'
405-
- uses: actions/checkout@v2
408+
- uses: actions/checkout@v4
406409

407-
- uses: actions/checkout@v2
410+
- uses: actions/checkout@v4
408411
with:
409412
repository: adafruit/ci-arduino
410413
path: ci

0 commit comments

Comments
 (0)