Skip to content

Commit fe4abb3

Browse files
authored
ci: Generate 1-click executable for programming systems (#103)
1 parent 84a317b commit fe4abb3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/package_main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
continue-on-error: false
1414

15+
outputs:
16+
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }}
17+
1518
steps:
1619
- name: Checkout repo
1720
uses: actions/checkout@v4
@@ -29,20 +32,35 @@ jobs:
2932
- name: Zip up firmware binaries
3033
run: |
3134
# zip the firmware bin files and flash args
32-
zip -j -r firmware-binaries.zip build/esp-box-emu.bin build/bootloader/bootloader.bin build/partition_table/partition-table.bin build/flash_args
35+
zip -j -r firmware-binaries.zip build/esp-box-emu.bin build/bootloader/bootloader.bin build/partition_table/partition-table.bin build/flash_args build/flasher_args.json
3336
3437
- name: Upload Build Outputs
3538
uses: actions/upload-artifact@v4
39+
id: zip_step
3640
with:
3741
name: firmware-binaries
3842
path: |
3943
build/bootloader/bootloader.bin
4044
build/partition_table/partition-table.bin
4145
build/esp-box-emu.bin
46+
build/flasher_args.json
4247
build/flash_args
4348
4449
- name: Attach files to release
4550
uses: softprops/action-gh-release@v2
4651
if: ${{ github.event.release && github.event.action == 'published' }}
4752
with:
4853
files: firmware-binaries.zip
54+
55+
package:
56+
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
57+
needs: build
58+
strategy:
59+
matrix:
60+
os: [windows-latest, macos-latest, ubuntu-latest]
61+
runs-on: ${{ matrix.os }}
62+
steps:
63+
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.4
64+
with:
65+
zipfile-id: ${{ needs.build.outputs.zipfile-id }}
66+
programmer-name: 'esp-box-emu_programmer'

0 commit comments

Comments
 (0)