@@ -78,40 +78,49 @@ jobs:
7878 build :
7979 if : github.repository_owner == 'wolfssl'
8080 runs-on : ubuntu-24.04
81+ # Teensy is allowed to fail: its board index lives at pjrc.com, which is
82+ # chronically unreachable from GitHub Actions runner egress IPs (DNS
83+ # timeouts / connection refused). A pjrc.com outage should not block PRs
84+ # on the 11 other boards. Track persistent red here and revisit if pjrc.com
85+ # access stabilizes or we mirror the index ourselves.
86+ continue-on-error : ${{ matrix.fqbn == 'teensy:avr:teensy40' }}
8187
8288 strategy :
8389 fail-fast : false
8490 matrix :
8591 fqbn :
86- # When editing this list, be sure to also edit file: board_list.txt
87- # The compile-all-examples.sh optionally takes a FQBN parameter to
88- # optionally compile all examples ONLY for the respective fully qualified board name.
89- # See https://github.com/wolfSSL/wolfssl-examples/blob/master/Arduino/sketches/board_list.txt
90-
91- - arduino:avr:ethernet
92- - arduino:avr:leonardoeth
93- - arduino:avr:mega
94- - arduino:avr:nano
95- - arduino:avr:uno
96- - arduino:avr:yun
97- - arduino:samd:mkr1000
98- - arduino:samd:mkrfox1200
92+ # Each matrix entry passes its FQBN to compile-all-examples.sh, which looks up
93+ # build settings for that single board in board_list.txt (fetched at runtime from
94+ # wolfssl-examples). When ADDING a board here, the FQBN must also exist in:
95+ # https://github.com/wolfSSL/wolfssl-examples/blob/master/Arduino/sketches/board_list.txt
96+ # Removing a board from this matrix does NOT require any wolfssl-examples change;
97+ # board_list.txt is the broader "supported boards" catalog, not the CI matrix.
98+ #
99+ # Matrix is intentionally trimmed: boards sharing a vendor:arch core also share
100+ # toolchain and headers, so additional boards in the same core mostly re-exercise
101+ # variant pin maps rather than wolfSSL code. Kept boards bracket the memory
102+ # envelope (uno=2KB RAM, mega=8KB RAM) and cover each distinct toolchain/ISA.
103+
104+ - arduino:avr:uno # smallest AVR (2KB RAM, 32KB flash)
105+ - arduino:avr:mega # largest AVR (8KB RAM, 256KB flash)
106+ - arduino:samd:mkr1000 # Cortex-M0+ representative
99107 - arduino:mbed_edge:edge_control
100- - arduino:mbed_portenta:envie_m7
101- - arduino:mbed_portenta:portenta_x8
102- - arduino:renesas_uno:unor4wifi
103- - arduino:sam:arduino_due_x
104- - arduino:samd:arduino_zero_native
105- - arduino:samd:tian
106- - esp32:esp32:esp32
107- - esp32:esp32:esp32s2
108- - esp32:esp32:esp32s3
109- - esp32:esp32:esp32c3
110- - esp32:esp32:esp32c6
111- - esp32:esp32:esp32h2
108+ - arduino:mbed_portenta:envie_m7 # Cortex-M7 Portenta
109+ - arduino:renesas_uno:unor4wifi # Renesas RA4M1
110+ - arduino:sam:arduino_due_x # Cortex-M3
111+ - esp32:esp32:esp32 # Xtensa LX6
112+ - esp32:esp32:esp32s3 # Xtensa LX7
113+ - esp32:esp32:esp32c3 # RISC-V representative
112114 - esp8266:esp8266:generic
113115 - teensy:avr:teensy40
114116
117+ # Dropped (redundant within same core):
118+ # arduino:avr:{ethernet,leonardoeth,nano,yun} - same toolchain as uno
119+ # arduino:samd:{mkrfox1200,arduino_zero_native,tian} - same toolchain as mkr1000
120+ # arduino:mbed_portenta:portenta_x8 - same core as envie_m7
121+ # esp32:esp32:esp32s2 - Xtensa LX7, covered by s3
122+ # esp32:esp32:{esp32c6,esp32h2} - RISC-V, covered by c3
123+ #
115124 # Not yet supported, not in standard library
116125 # - esp32:esp32:nano_nora
117126
@@ -193,8 +202,17 @@ jobs:
193202 # wait 10 minutes for big downloads (or use 0 for no limit)
194203 arduino-cli config set network.connection_timeout 600s
195204
196- arduino-cli config add board_manager.additional_urls https://www.pjrc.com/teensy/package_teensy_index.json
197- arduino-cli config add board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
205+ # Only add third-party board_manager URLs for matrix entries that actually need them.
206+ # arduino-cli re-reads every configured index on each invocation and fails the whole
207+ # step if any one is unreachable, so adding these unconditionally makes all jobs
208+ # depend on pjrc.com and esp8266.com -- a single outage there cascades into total
209+ # CI failure. Scope each URL to the one CORE_ID that uses it.
210+ if [ "$CORE_ID" = "teensy:avr" ]; then
211+ arduino-cli config add board_manager.additional_urls https://www.pjrc.com/teensy/package_teensy_index.json
212+ fi
213+ if [ "$CORE_ID" = "esp8266:esp8266" ]; then
214+ arduino-cli config add board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
215+ fi
198216 arduino-cli core update-index
199217
200218 echo "CORE_ID: $CORE_ID"
0 commit comments