Skip to content

Commit 10c9ef1

Browse files
authored
Merge pull request #781 from adafruit/migrate-s3-boards
Migrate-s3-boards
2 parents 8b02c9b + 4dd956e commit 10c9ef1

File tree

3 files changed

+39
-35
lines changed

3 files changed

+39
-35
lines changed

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

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,19 @@ jobs:
2626
arduino-platform:
2727
[
2828
"feather_esp32s2",
29+
"feather_esp32s2_reverse_tft",
30+
"feather_esp32s2_tft",
2931
"funhouse_noota",
30-
"esp32s3_devkitc_1_n8",
31-
"xiao_esp32s3",
3232
"magtag",
3333
"metroesp32s2",
34-
"feather_esp32s2_tft",
35-
"feather_esp32s2_reverse_tft",
3634
"qtpy_esp32s2",
35+
"esp32s3_devkitc_1_n8",
36+
"feather_esp32s3_4mbflash_2mbpsram",
37+
"feather_esp32s3_reverse_tft",
38+
"feather_esp32s3_tft",
39+
"qtpy_esp32s3_n4r2",
40+
"xiao_esp32s3",
3741
]
38-
# include:
39-
# - offset: "0x0"
40-
# - offset: "0x1000"
41-
# arduino-platform: "funhouse_noota"
42-
# - offset: "0x1000"
43-
# arduino-platform: "feather_esp32s2"
44-
# - offset: "0x1000"
45-
# arduino-platform: "metroesp32s2"
46-
# - offset: "0x1000"
47-
# arduino-platform: "magtag"
48-
# - offset: "0x1000"
49-
# arduino-platform: "feather_esp32s2_tft"
50-
# - offset: "0x1000"
51-
# arduino-platform: "feather_esp32s2_reverse_tft"
52-
# - offset: "0x1000"
53-
# arduino-platform: "qtpy_esp32s2"
5442

5543
steps:
5644
- name: "skip if unwanted"
@@ -163,15 +151,35 @@ jobs:
163151
} >> "$GITHUB_OUTPUT"
164152
- name: fetch tinyuf2 combined.bin
165153
run: |
166-
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/adafruit/tinyuf2/releases/latest | \
167-
jq -r '.assets[] | select(.browser_download_url | contains("tinyuf2-'${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}'-") and endswith(".zip")) | .browser_download_url')
168-
if [ -z "$DOWNLOAD_URL" ]; then
169-
echo "Error: Could not find the latest tinyuf2 release for board ${fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}."
170-
exit 1
171-
fi
172-
wget "$DOWNLOAD_URL" -O tinyuf2.zip
173-
unzip -o tinyuf2.zip -d .
174-
154+
BOARD_NAME="${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}"
155+
set +e
156+
for attempt in 1 2 3; do
157+
echo "Attempt $attempt: Fetching tinyuf2 release info for board $BOARD_NAME"
158+
API_RESPONSE=$(curl --silent --fail https://api.github.com/repos/adafruit/tinyuf2/releases/latest)
159+
if [ $? -ne 0 ]; then
160+
echo "Attempt $attempt: curl failed to fetch release info."
161+
if [ "$attempt" -eq 3 ]; then exit 1; else sleep $((60 + RANDOM % 40)); continue; fi
162+
fi
163+
DOWNLOAD_URL=$(echo "$API_RESPONSE" | jq -r '.assets[] | select(.browser_download_url | contains("tinyuf2-'$BOARD_NAME'-") and endswith(".zip")) | .browser_download_url // empty'); JQ_EXIT=$?
164+
if [ $JQ_EXIT -ne 0 ] || [ -z "$DOWNLOAD_URL" ]; then
165+
echo "Attempt $attempt: jq failed or no matching zip found."
166+
if [ "$attempt" -eq 3 ]; then exit 1; else sleep $((60 + RANDOM % 40)); continue; fi
167+
fi
168+
echo "Attempt $attempt: Downloading $DOWNLOAD_URL"
169+
wget "$DOWNLOAD_URL" -O tinyuf2.zip
170+
if [ $? -eq 0 ]; then
171+
unzip -o tinyuf2.zip -d .
172+
if [ $? -ne 0 ]; then
173+
echo "Attempt $attempt: unzip failed"
174+
if [ "$attempt" -eq 3 ]; then exit 1; else sleep $((60 + RANDOM % 40)); continue; fi
175+
fi
176+
break
177+
else
178+
echo "Attempt $attempt: wget failed to download $DOWNLOAD_URL"
179+
if [ "$attempt" -eq 3 ]; then exit 1; else sleep $((60 + RANDOM % 40)); fi
180+
fi
181+
done
182+
set -e
175183
- name: move partition and bootloader files for tinyuf2 (to match flash_args)
176184
run: |
177185
# Copy files where they're expected to make flash_args happy
@@ -248,11 +256,7 @@ jobs:
248256
[
249257
"metro_esp32s3",
250258
"feather_esp32s3",
251-
"feather_esp32s3_4mbflash_2mbpsram",
252-
"feather_esp32s3_reverse_tft",
253-
"feather_esp32s3_tft",
254259
"qtpy_esp32s3",
255-
"qtpy_esp32s3_n4r2",
256260
]
257261
steps:
258262
- name: "skip if unwanted"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit WipperSnapper
2-
version=1.0.0-beta.108
2+
version=1.0.0-beta.109
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino application for Adafruit.io WipperSnapper

src/Wippersnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
#endif
143143

144144
#define WS_VERSION \
145-
"1.0.0-beta.108" ///< WipperSnapper app. version (semver-formatted)
145+
"1.0.0-beta.109" ///< WipperSnapper app. version (semver-formatted)
146146

147147
// Reserved Adafruit IO MQTT topics
148148
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic

0 commit comments

Comments
 (0)