Skip to content

Commit

Permalink
✨ Create aio build for CI to upload with single file to esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
mawoka-myblock committed Jul 16, 2024
1 parent 9e0a7f6 commit aa00d3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/platformio_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Install ESPtool
run: pip install esptool
- name: Build PlatformIO Project
run: pio run
- name: Combine into single file
run: esptool.py --chip esp32c3 merge_bin -o fw.bin --flash_size 4MB 0x1000 .pio/build/mini_c3/bootloader.bin 0x8000 .pio/build/mini_c3/partitions.bin 0x10000 .pio/build/mini_c3/firmware.bin
- name: Upload esp32c3
uses: actions/upload-artifact@v4
with:
path: .pio/build/mini_c3/firmware.bin
name: firmware-esp32c3.bin
path: ./fw.bin
name: esp32c3-4mb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ At first, I'd recommend soldering all the components together.

## Flashing instructions

1. Download the latest build [here](https://nightly.link/mawoka-myblock/td-free/workflows/platformio_build/main/firmware-esp32c3.bin.zip).
1. Download the latest build [here](https://nightly.link/mawoka-myblock/td-free/workflows/platformio_build/main/esp32c3-4mb.zip).
They are directly built by GitHub.
2. Extract the downloaded zip file.
3. Install esp-tool.
Expand Down

0 comments on commit aa00d3a

Please sign in to comment.