From 0c6b0d295f6dd98d454f40bc330ecfa616cd3fdb Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 27 Dec 2024 02:03:08 +0100 Subject: [PATCH] Auto generate an esp32-s3 firmware bin file. Signed-off-by: Pol Henarejos --- .github/workflows/nightly.yml | 1 + workflows/autobuild.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c9455e2..6b2ed29 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -25,6 +25,7 @@ jobs: run: | ./workflows/autobuild.sh pico ./build_pico_hsm.sh + ./workflows/autobuild.sh esp32 - name: Update nightly release uses: pyTooling/Actions/releaser@main with: diff --git a/workflows/autobuild.sh b/workflows/autobuild.sh index 66c978f..4512db7 100755 --- a/workflows/autobuild.sh +++ b/workflows/autobuild.sh @@ -23,6 +23,7 @@ mkdir build_pico cd build_pico cmake -DPICO_SDK_PATH=../pico-sdk .. make +cd .. elif [[ $1 == "esp32" ]]; then sudo apt install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 git clone --recursive https://github.com/espressif/esp-idf.git @@ -32,6 +33,10 @@ cd esp-idf cd .. idf.py set-target esp32s3 idf.py all +mkdir -p release +cd build +esptool.py --chip ESP32 merge_bin -o ../release/esp32-s3.bin @flash_args +cd .. else mkdir build cd build