Skip to content

Commit

Permalink
tweak release script
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocrippa committed Apr 23, 2024
1 parent 322e49e commit 4f9bcba
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,24 @@ jobs:

- name: Archive OTA ESP32
run: |
find .pio/build -name "firmware.bin" -exec sh -c 'cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin "artifacts/0xe000_boot_$(basename $(dirname {})).bin"' \;
declare -A board_map=(
["esp32"]="0xe000_boot"
["esp32-s2"]="0xe000_boot"
["esp32-s3"]="0xe000_boot"
["lilygo-t-display-s3"]="0xe000_boot"
)
for board in "${!board_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
done
working-directory: ${{ github.workspace }}

- name: Archive Artifacts with Address
run: |
# Define the mapping of board names to file prefixes
declare -A board_map=(
["esp8266"]="0x0000_firmware"
["geekmagic-smalltv"]="0x0000_firmware"
Expand Down

0 comments on commit 4f9bcba

Please sign in to comment.