espressif / rust-esp32-example

Example of Rust integration into an ESP-IDF project, for ESP32 series of chips
MIT License
440 stars 36 forks source link

Provide binaries with flashing script for ESP32-S2 #18

Closed georgik closed 3 years ago

georgik commented 3 years ago

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.

georgik commented 3 years ago

@jurajsadel PTAL

georgik commented 3 years ago

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