Skip to content

Commit 8caa57b

Browse files
committed
Update package-main workflow to build the binaries into executables
1 parent 0a3859c commit 8caa57b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/package_main.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
branches: [main]
66
release:
77
types: [published]
8+
workflow_dispatch:
89

910
jobs:
1011
build:
1112

1213
runs-on: ubuntu-latest
1314
continue-on-error: false
1415

16+
outputs:
17+
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }}
18+
1519
steps:
1620
- name: Checkout repo
1721
uses: actions/checkout@v4
@@ -27,12 +31,15 @@ jobs:
2731

2832
- name: Upload Build Outputs
2933
uses: actions/upload-artifact@v4
34+
id: zip_step
3035
with:
3136
name: build-artifacts
3237
path: |
38+
build/*.bin
39+
build/*.elf
3340
build/bootloader/bootloader.bin
3441
build/partition_table/partition-table.bin
35-
build/*.bin
42+
build/flasher_args.json
3643
build/flash_args
3744
3845
- name: Attach files to release
@@ -41,7 +48,21 @@ jobs:
4148
with:
4249
files: |
4350
build/*.bin
51+
build/*.elf
4452
build/bootloader/bootloader.bin
4553
build/partition_table/partition-table.bin
54+
build/flasher_args.json
4655
build/flash_args
4756
57+
package:
58+
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
59+
needs: build
60+
strategy:
61+
matrix:
62+
os: [windows-latest, macos-latest, ubuntu-latest]
63+
runs-on: ${{ matrix.os }}
64+
steps:
65+
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.1
66+
with:
67+
zipfile-id: ${{ needs.build.outputs.zipfile-id }}
68+
programmer-name: 'esp-usb-ble-hid_programmer'

0 commit comments

Comments
 (0)