@@ -46,38 +46,22 @@ jobs:
4646 *) echo 'Unknown target'; exit 1;;
4747 esac)" >> $GITHUB_ENV
4848
49- - name : esp-idf build
49+ - name : esp-idf build and merge binaries
5050 uses : espressif/esp-idf-ci-action@v1.1.0
5151 with :
5252 esp_idf_version : latest
5353 target : ${{ env.TARGET }}
5454 path : ' .'
5555 command : |
56- idf.py @boards/${{ matrix.board }}.cfg build
57-
58- - name : Extract individual binaries
59- run : |
60- cd build.${{ matrix.board }}
61- # Copy individual components
62- cp bootloader/bootloader.bin ../bootloader-${{ matrix.board }}.bin
63- cp partition_table/partition-table.bin ../partition-table-${{ matrix.board }}.bin
64- cp esp32-open-tyrian.bin ../opentyrian.bin
65- cp storage.bin ../storage.bin
66- cd ..
67-
68- - name : Create merged binary for ESP Launchpad
69- run : |
70- cd build.${{ matrix.board }}
71- # Create merged binary for web flashing
72- case ${{ matrix.board }} in
73- esp32_p4_function_ev_board)
74- esptool.py --chip ${{ env.TARGET }} merge_bin -o ../opentyrian-${{ github.event.inputs.version }}-${{ matrix.board }}.bin "@flash_args"
75- ;;
76- *)
77- esptool.py --chip ${{ env.TARGET }} merge_bin -o ../opentyrian-${{ github.event.inputs.version }}-${{ matrix.board }}.bin "@flash_args"
78- ;;
79- esac
80- cd ..
56+ idf.py @boards/${{ matrix.board }}.cfg build &&
57+ cd build.${{ matrix.board }} &&
58+ # Copy individual components for packaging
59+ cp bootloader/bootloader.bin ../bootloader-${{ matrix.board }}.bin &&
60+ cp partition_table/partition-table.bin ../partition-table-${{ matrix.board }}.bin &&
61+ cp esp32-open-tyrian.bin ../opentyrian.bin &&
62+ cp storage.bin ../storage.bin &&
63+ # Create merged binary for ESP Launchpad
64+ esptool.py --chip ${{ env.TARGET }} merge_bin -o ../opentyrian-${{ github.event.inputs.version }}-${{ matrix.board }}.bin "@flash_args"
8165
8266 - name : Create package
8367 run : |
0 commit comments