File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,21 @@ jobs:
143143 } >> "$GITHUB_OUTPUT"
144144 - name : fetch tinyuf2 combined.bin
145145 run : |
146- if [ "${{ matrix.arduino-platform }}" == "funhouse_noota" ]; then
147- wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/adafruit_funhouse_esp32s2/tinyuf2-adafruit_funhouse_esp32s2-0.35.0.zip -O tinyuf2.zip
148- elif [ "${{ matrix.arduino-platform }}" == "esp32s3_devkitc_1_n8" ]; then
149- wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/espressif_esp32s3_devkitc_1/tinyuf2-espressif_esp32s3_devkitc_1-0.35.0.zip -O tinyuf2.zip
150- elif [ "${{ matrix.arduino-platform }}" == "xiao_esp32s3" ]; then
151- wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/seeed_xiao_esp32s3/tinyuf2-seeed_xiao_esp32s3-0.35.0.zip -O tinyuf2.zip
152- fi
146+ echo "Fetching tinyuf2 bootloader..."
147+ # if [ "${{ matrix.arduino-platform }}" == "funhouse_noota" ]; then
148+ # wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/adafruit_funhouse_esp32s2/tinyuf2-adafruit_funhouse_esp32s2-0.35.0.zip -O tinyuf2.zip
149+ # elif [ "${{ matrix.arduino-platform }}" == "esp32s3_devkitc_1_n8" ]; then
150+ # wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/espressif_esp32s3_devkitc_1/tinyuf2-espressif_esp32s3_devkitc_1-0.35.0.zip -O tinyuf2.zip
151+ # elif [ "${{ matrix.arduino-platform }}" == "xiao_esp32s3" ]; then
152+ # wget https://adafruit-circuit-python.s3.amazonaws.com/bootloaders/esp32/seeed_xiao_esp32s3/tinyuf2-seeed_xiao_esp32s3-0.35.0.zip -O tinyuf2.zip
153+ # fi
154+
155+ DOWNLOAD_URL=$(curl -s https://api.github.com/repos/adafruit/tinyuf2/releases/latest | \
156+ grep -o "\"browser_download_url\": \"[^\"]*tinyuf2-${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}-[^\"]*\.zip\"" | \
157+ cut -d '"' -f 4)
158+
159+ wget "$DOWNLOAD_URL" -O tinyuf2.zip
160+
153161 unzip -o tinyuf2.zip -d .
154162
155163 # Copy files where they're expected to make flash_args happy
You can’t perform that action at this time.
0 commit comments