-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build merged binary for first deployment
- Loading branch information
wkrasnicki
committed
Feb 1, 2025
1 parent
b19bf13
commit 57f9a0b
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|