Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocrippa committed Apr 23, 2024
1 parent 4f9bcba commit 83fb863
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,21 @@ jobs:

- name: Archive OTA ESP32
run: |
declare -A board_map=(
declare -A ota_map=(
["esp32"]="0xe000_boot"
["esp32-s2"]="0xe000_boot"
["esp32-s3"]="0xe000_boot"
["lilygo-t-display-s3"]="0xe000_boot"
)
for board in "${!board_map[@]}"; do
for board in "${!ota_map[@]}"; do
if [ ! -d ".pio/build/$board" ]; then
continue
fi
find .pio/build/$board -name "firmware.bin" -exec sh -c 'cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin "artifacts/'"${board_map[$board]}_$(basename $(dirname {})).bin"'"' \;
rm -rf .pio/build/$board
for address in ${board_map[$board]}; do
address_prefix=$(echo $address | cut -d'_' -f1)
file_type=$(echo $address | cut -d'_' -f2)
find .pio/build/$board -name "firmware.bin" -exec sh -c '~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin "{}" "artifacts/'"${address_prefix}_${file_type}_${board}.bin"'"' \;
done
done
working-directory: ${{ github.workspace }}
Expand Down

0 comments on commit 83fb863

Please sign in to comment.