Skip to content

Commit

Permalink
Set githubaction for build espmaster code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcfshcrw committed Aug 4, 2024
1 parent cd39d16 commit fd856e2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/PreRelease_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,24 @@ jobs:
./Helper/zip/esp32.zip
./Helper/zip/esp32s3.zip
./Helper/zip/esp32_speedcrafter.zip
# Build ESP code for esp32_master
- name: Build PlatformIO Project ESP32
working-directory: ./ESP32_master
run: |
pio system info
pio run --environment esp32s3usbotg
# 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
# zip plugin binaries
- name: ZIP files
run: |
7z a ${{ github.workspace }}/Helper/zip/esp32s3_espmaster.zip ${{ github.workspace }}/Helper/bins/esp32s3_espmaster/
# upload release asset
# Arduino binaries
- name: Upload ESP release assets
Expand Down Expand Up @@ -165,7 +180,17 @@ 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
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/esp32s3_espmaster.zip
asset_name: esp32s3_espmaster.zip
asset_content_type: application/zip


########################################################################
Expand Down
Binary file added Helper/bins/esp32s3_espmaster/boot_app0.bin
Binary file not shown.

0 comments on commit fd856e2

Please sign in to comment.