Skip to content

Commit

Permalink
Build merged binary for first deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrasnicki committed Feb 1, 2025
1 parent b19bf13 commit 57f9a0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
- name: Trim binary
run: esptool.py --chip esp32s3 elf2image --flash_size 4MB --output esp-pulser target/xtensa-esp32s3-espidf/release/esp-pulser

- name: Create merged binary for full flash
run: |
python scripts/gen_esp32part.py partitions.csv partition-table.bin
cp target/xtensa-esp32s3-espidf/release/bootloader.bin .
esptool.py --chip esp32s3 merge_bin -o esp-pulser-merged.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partition-table.bin 0x10000 esp-pulser
- name: Get version from Cargo.toml
id: get_version
run: echo "VERSION=$(grep '^version =' Cargo.toml | sed -E 's/version = \"([^\"]+)\"/\1/')" >> $GITHUB_ENV
Expand All @@ -66,6 +72,15 @@ jobs:
asset_name: esp-pulser
asset_content_type: application/x-dosexec

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: esp-pulser-merged.bin
asset_name: esp-pulser-merged.bin
asset_content_type: application/x-dosexec

- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "esp-pulser"
version = "0.4.3"
version = "0.4.4"
authors = ["krokosik <[email protected]>"]
edition = "2021"
resolver = "2"
Expand Down

0 comments on commit 57f9a0b

Please sign in to comment.