Skip to content

Commit 5c67524

Browse files
committed
Support alternative locations of bootloader file.
1 parent 4e61b34 commit 5c67524

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,14 @@ jobs:
101101
102102
- name: Package firmware
103103
run: |
104-
cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin 0x01000.bin
104+
if [[ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin" ]]; then
105+
cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin 0x01000.bin
106+
elif [[ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin" ]]; then
107+
cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin 0x01000.bin
108+
else
109+
echo could not find bootloader_dio_40m.bin, new location?
110+
exit 1
111+
fi
105112
cp bin/.pio/build/esp32dev/partitions.bin 0x08000.bin
106113
cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x0e000.bin
107114
cp bin/.pio/build/esp32dev/firmware.bin 0x10000.bin

0 commit comments

Comments
 (0)