Add esptool to workflow

This commit is contained in:
Djuri Baars 2023-08-29 17:03:05 +02:00
parent 3736facdca
commit 05e459a64c
2 changed files with 12 additions and 2 deletions

View file

@ -32,17 +32,25 @@ jobs:
- name: Build BTClock filesystem - name: Build BTClock filesystem
run: pio run -e esp32wemos-s3-mini_BW --target buildfs run: pio run -e esp32wemos-s3-mini_BW --target buildfs
- name: Install esptools.py
run: pip install --upgrade esptool
- name: Create merged firmware binary
run: esptool.py --chip esp32s3 merge_bin -o full-firmware.bin --flash_mode dio 0x0000 .pio/build/esp32wemos-s3-mini_BW/bootloader.bin 0x8000 .pio/build/esp32wemos-s3-mini_BW/partitions.bin 0xe000 ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/esp32wemos-s3-mini_BW/firmware.bin 0x330000 .pio/build/esp32wemos-s3-mini_BW/spiffs.bin
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
path: | path: |
.pio/build/esp32wemos-s3-mini_BW/*.bin .pio/build/esp32wemos-s3-mini_BW/*.bin
full-firmware.bin
- name: Create release - name: Create release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
tag: main tag: main
commit: main commit: main
artifacts: ".pio/build/esp32wemos-s3-mini_BW/*.bin" artifacts: "full-firmware.bin,.pio/build/esp32wemos-s3-mini_BW/*.bin"
allowUpdates: true allowUpdates: true
removeArtifacts: true removeArtifacts: true

2
.gitignore vendored
View file

@ -8,3 +8,5 @@ data/.yarn
data/node_modules data/node_modules
.vscode/c_cpp_properties.json .vscode/c_cpp_properties.json
node_modules node_modules
.DS_Store
*.bin