Closed georgik closed 3 years ago
@jurajsadel PTAL
Flashing script is here https://github.com/espressif/rust-esp32-example/blob/main/support/esptool/Flash-Chip.ps1 Used by GitHub Workflow: https://github.com/espressif/rust-esp32-example/blob/main/.github/workflows/test-build.yml
Use GitHub Action to build binary of rust-esp32-example for ESP32-S2 as Artifact (or Release). Add script which allows direct flashing of the binary to the board, so that user can flash the chip with resulting binaries without need to install ESP-IDF or compiling the project on local machine.
Similar script is available: https://github.com/georgik/ctag-tbd/blob/master/.github/workflows/draft-release.yml#L17
Note: It might be necessary to add support for
target
parameter in GitHub Action espressif/esp-idf-ci-action, so that user can specify the name of target architecture directly in the workflow yaml.