Skip to content

Commit e0ccdc2

Browse files
committed
Merge branch 'use_s3_tinyuf2_bins' into featherS2-migration
2 parents 0c08edd + 69cf749 commit e0ccdc2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,34 +147,36 @@ jobs:
147147
} >> "$GITHUB_OUTPUT"
148148
- name: fetch tinyuf2 combined.bin
149149
run: |
150-
echo "Fetching tinyuf2 bootloader..."
151150
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/adafruit/tinyuf2/releases/latest | \
152-
grep -o "\"browser_download_url\": \"[^\"]*tinyuf2-${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}-[^\"]*\.zip\"" | \
153-
cut -d '"' -f 4)
151+
jq -r '.assets[] | select(.browser_download_url | contains("tinyuf2-'${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}'-") and endswith(".zip")) | .browser_download_url')
154152
if [ -z "$DOWNLOAD_URL" ]; then
155153
echo "Error: Could not find the latest tinyuf2 release for board ${fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}."
156154
exit 1
157155
fi
158156
wget "$DOWNLOAD_URL" -O tinyuf2.zip
159157
unzip -o tinyuf2.zip -d .
160158
159+
- name: move partition and bootloader files for tinyuf2 (to match flash_args)
160+
run: |
161161
# Copy files where they're expected to make flash_args happy
162162
mkdir bootloader
163163
cp bootloader.bin bootloader/bootloader.bin
164164
mkdir partition_table
165165
cp partition-table.bin partition_table/partition-table.bin
166166
167-
# Append main app to flash_args file
168-
echo "0x10000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bin" >> flash_args
169-
167+
- name: Create new_flash_args file from flash_args with added app bin + output file
168+
run: |
170169
# Create new_flash_args with esptool parameters first and output file
171170
echo "--flash-mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}}" > new_flash_args
172171
echo "--flash-freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}}" >> new_flash_args
173172
echo "--flash-size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}}" >> new_flash_args
174173
echo "-o wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.combined.bin" >> new_flash_args
175174
176-
# Append flash_args content skipping the first line
175+
# Append flash_args content to new_flash_args, skipping the first line
177176
tail -n +2 flash_args >> new_flash_args
177+
178+
# Append main app to flash_args file
179+
echo "0x10000 wippersnapper.${{ matrix.arduino-platform }}.fatfs.${{ env.WS_VERSION }}.bin" >> new_flash_args
178180
- name: Check boot_app0 file existence (esp32sx built from core, not-source)
179181
id: check_files
180182
uses: andstor/file-existence-action@v3

0 commit comments

Comments
 (0)