Skip to content

Commit 5f2f55e

Browse files
committed
Compile all seven Arduino sketches on esp32, the board board_list.txt excludes none on
1 parent adb7ea3 commit 5f2f55e

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

.github/examples-manifest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,14 +1210,14 @@ examples:
12101210
- id: arduino-client-dtls
12111211
path: Arduino/sketches/wolfssl_client_dtls
12121212
tier: cross
1213-
mode: skip
1214-
reason: "Arduino/sketches/board_list.txt excludes it on every board CI can install: needs WOLFSSL_DTLS in the arduino library user_settings.h, and it overflows AVR RAM (194%)"
1213+
profile: all
1214+
mode: build-only
12151215

12161216
- id: arduino-server-dtls
12171217
path: Arduino/sketches/wolfssl_server_dtls
12181218
tier: cross
1219-
mode: skip
1220-
reason: "Arduino/sketches/board_list.txt excludes it on every board CI can install: needs WOLFSSL_DTLS in the arduino library user_settings.h, and it overflows AVR RAM (194%)"
1219+
profile: all
1220+
mode: build-only
12211221

12221222
- id: arduino-AES-CTR
12231223
path: Arduino/sketches/wolfssl_AES_CTR

.github/workflows/cross-build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,24 +265,24 @@ jobs:
265265
arduino:
266266
name: arduino (${{ matrix.sketch }})
267267
runs-on: ubuntu-24.04
268-
timeout-minutes: 25
268+
timeout-minutes: 30
269269
strategy:
270270
fail-fast: false
271271
matrix:
272-
# board_list.txt excludes the two dtls sketches on this board: they need
273-
# WOLFSSL_DTLS in the arduino library's user_settings.h. esp32 takes all
274-
# seven but needs a third-party core URL.
272+
# board_list.txt excludes nothing on esp32, unlike the avr/samd boards
273+
# (the networking sketches include <WiFi.h>, which only esp32 provides,
274+
# and wolfSSL overflows AVR RAM at 194%).
275275
sketch:
276276
- template
277277
- wolfssl_version
278278
- wolfssl_AES_CTR
279279
- wolfssl_client
280280
- wolfssl_server
281+
- wolfssl_client_dtls
282+
- wolfssl_server_dtls
281283
steps:
282284
- uses: actions/checkout@v5
283285

284-
# arduino.yml compiles the sketches inside the *installed* wolfSSL Arduino
285-
# library, never this repo's Arduino/sketches/*, so nothing built these.
286286
# sudo drops BINDIR, so let the installer use its default $PWD/bin and put
287287
# that on PATH -- GITHUB_PATH only applies to later steps, hence the split.
288288
- name: Install arduino-cli
@@ -291,11 +291,14 @@ jobs:
291291
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
292292
echo "$PWD/bin" >> "$GITHUB_PATH"
293293
294-
- name: Install the samd core
294+
- name: Install the esp32 core
295295
run: |
296296
set -euo pipefail
297+
arduino-cli config init
298+
arduino-cli config add board_manager.additional_urls \
299+
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
297300
arduino-cli core update-index
298-
arduino-cli core install arduino:samd
301+
arduino-cli core install esp32:esp32
299302
300303
# Generate the Arduino library from wolfSSL source with wolfSSL's own
301304
# script, so this tracks master rather than a published snapshot.
@@ -313,7 +316,7 @@ jobs:
313316
run: |
314317
set -euo pipefail
315318
cd 'Arduino/sketches/${{ matrix.sketch }}'
316-
arduino-cli compile --fqbn arduino:samd:mkrwifi1010 \
319+
arduino-cli compile --fqbn esp32:esp32:esp32 \
317320
--libraries "$HOME/Arduino/libraries" . --warnings none
318321
319322
# cross-build.yml already triggers on puf/**, but had no job to run: editing

0 commit comments

Comments
 (0)