From 913ed32c3e5a014749c0198d527b9b1a09ed5740 Mon Sep 17 00:00:00 2001 From: tcfshcrw <48719709+tcfshcrw@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:49:59 +0800 Subject: [PATCH] add git-hub action for building bridge --- .github/workflows/PreRelease_task.yml | 39 +++++++++++++++--- .../boot_app0.bin | Bin .../esp32s3_joystickreceiver/boot_app0.bin | Bin 0 -> 8192 bytes 3 files changed, 34 insertions(+), 5 deletions(-) rename Helper/bins/{esp32s3_espmaster => esp32_bridge}/boot_app0.bin (100%) create mode 100644 Helper/bins/esp32s3_joystickreceiver/boot_app0.bin diff --git a/.github/workflows/PreRelease_task.yml b/.github/workflows/PreRelease_task.yml index 210a0958..33ba7f5b 100644 --- a/.github/workflows/PreRelease_task.yml +++ b/.github/workflows/PreRelease_task.yml @@ -134,15 +134,32 @@ jobs: # copy files to dir - name: Copy files to packing dir run: | - copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/firmware.bin ${{ github.workspace }}/Helper/bins/esp32s3_espmaster - copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32s3_espmaster - copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/partitions.bin ${{ github.workspace }}/Helper/bins/esp32s3_espmaster + copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/firmware.bin ${{ github.workspace }}/Helper/bins/esp32s3_joystickreceiver + copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32s3_joystickreceiver + copy ${{ github.workspace }}/ESP32_master/.pio/build/esp32s3usbotg/partitions.bin ${{ github.workspace }}/Helper/bins/esp32s3_joystickreceiver # zip plugin binaries - name: ZIP files run: | - 7z a ${{ github.workspace }}/Helper/zip/esp32s3_espmaster.zip ${{ github.workspace }}/Helper/bins/esp32s3_espmaster/ + 7z a ${{ github.workspace }}/Helper/zip/esp32s3_joystickreceiver.zip ${{ github.workspace }}/Helper/bins/esp32s3_joystickreceiver/ + # Build ESP code for esp32_bridge + - name: Build PlatformIO Project ESP_bridge + working-directory: ./ESP_bridge + run: | + pio system info + pio run --environment esp32 + # copy files to dir + - name: Copy files to packing dir + run: | + copy ${{ github.workspace }}/ESP_bridge/.pio/build/ESP_bridge/firmware.bin ${{ github.workspace }}/Helper/bins/esp32_bridge + copy ${{ github.workspace }}/ESP_bridge/.pio/build/ESP_bridge/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32_bridge + copy ${{ github.workspace }}/ESP_bridge/.pio/build/ESP_bridge/partitions.bin ${{ github.workspace }}/Helper/bins/esp32_bridge + # zip plugin binaries + - name: ZIP files + run: | + 7z a ${{ github.workspace }}/Helper/zip/esp32_bridge.zip ${{ github.workspace }}/Helper/bins/esp32_bridge/ + # upload release asset # Arduino binaries - name: Upload ESP release assets @@ -180,6 +197,7 @@ jobs: asset_path: ./Helper/zip/esp32_speedcrafter.zip asset_name: esp32_speedcrafter.zip asset_content_type: application/zip + - name: Upload ESP release assets esp32s3 espmaster id: upload-release-asset-ESP32S3-ESPmaster uses: actions/upload-release-asset@v1 @@ -191,7 +209,18 @@ jobs: asset_path: ./Helper/zip/esp32s3_espmaster.zip asset_name: esp32s3_espmaster.zip asset_content_type: application/zip - + + - name: Upload ESP release assets esp32s3 espmaster + id: upload-release-asset-esp32_bridge + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + url: ${{needs.Build-date.outputs.Upload_URL}} + with: + upload_url: ${{ env.url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./Helper/zip/esp32_bridge.zip + asset_name: esp32_bridge.zip + asset_content_type: application/zip ######################################################################## # Build SimHub plugin diff --git a/Helper/bins/esp32s3_espmaster/boot_app0.bin b/Helper/bins/esp32_bridge/boot_app0.bin similarity index 100% rename from Helper/bins/esp32s3_espmaster/boot_app0.bin rename to Helper/bins/esp32_bridge/boot_app0.bin diff --git a/Helper/bins/esp32s3_joystickreceiver/boot_app0.bin b/Helper/bins/esp32s3_joystickreceiver/boot_app0.bin new file mode 100644 index 0000000000000000000000000000000000000000..13562cabb9648287fdf70d2a22789fdf1e4156b4 GIT binary patch literal 8192 zcmeI#u?+wq2n0Z!&B7Ip%ZdwNPjZydJlFk*h+E9ra}_6R0t5&UAV7cs0RjXF5FkLH gk-)3}W&dyVhNuJx5FkK+009C72oNAZfWSu}0Te{nn*aa+ literal 0 HcmV?d00001