From 9797c1a91e404fe250911abc036e8c1ef3a6d176 Mon Sep 17 00:00:00 2001 From: johnny9 <985648+johnny9@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:22:40 -0400 Subject: [PATCH] ci: Build the merged binary and include in artifacts --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b397e033..9fd87a8a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,13 +21,25 @@ jobs: uses: espressif/esp-idf-ci-action@v1 with: esp_idf_version: v5.1 - target: esp32s2 + target: esp32s3 command: GITHUB_ACTIONS="true" idf.py build path: '.' + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + cache: 'pip' # caching pip dependencies + - run: pip install esptool + - name: "Create factory/merged image" + run: "./merge_bin.sh ./esp-miner-merged.bin" + - name: upload esp-miner-merged.bin + uses: actions/upload-artifact@v3 + with: + name: esp-miner-factory.bin + path: ./esp-miner-merged.bin - name: upload esp-miner.bin uses: actions/upload-artifact@v3 with: - name: esp-miner.bin + name: esp-miner-ota.bin path: ./build/esp-miner.bin - name: upload www.bin uses: actions/upload-artifact@v3