Skip to content

Commit

Permalink
add git-hub action for building bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
tcfshcrw committed Aug 16, 2024
1 parent 9fc0a79 commit 913ed32
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/PreRelease_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
File renamed without changes.
Binary file not shown.

0 comments on commit 913ed32

Please sign in to comment.