|
5 | 5 | branches: [main] |
6 | 6 | release: |
7 | 7 | types: [published] |
| 8 | + workflow_dispatch: |
8 | 9 |
|
9 | 10 | jobs: |
10 | 11 | build: |
11 | 12 |
|
12 | 13 | runs-on: ubuntu-latest |
13 | 14 | continue-on-error: false |
14 | 15 |
|
| 16 | + outputs: |
| 17 | + zipfile-id: ${{ steps.zip_step.outputs.artifact-id }} |
| 18 | + |
15 | 19 | steps: |
16 | 20 | - name: Checkout repo |
17 | 21 | uses: actions/checkout@v4 |
18 | | - with: |
19 | | - submodules: 'recursive' |
20 | 22 |
|
21 | 23 | - name: Build Main Code |
22 | 24 | uses: espressif/esp-idf-ci-action@v1 |
23 | 25 | with: |
24 | | - esp_idf_version: release-v5.2 |
| 26 | + esp_idf_version: release-v5.4 |
25 | 27 | target: esp32s3 |
26 | 28 | path: '.' |
27 | 29 | command: 'idf.py build' |
28 | 30 |
|
29 | 31 | - name: Upload Build Outputs |
30 | 32 | uses: actions/upload-artifact@v4 |
| 33 | + id: zip_step |
31 | 34 | with: |
32 | 35 | name: build-artifacts |
33 | 36 | path: | |
| 37 | + build/*.bin |
| 38 | + build/*.elf |
34 | 39 | build/bootloader/bootloader.bin |
35 | 40 | build/partition_table/partition-table.bin |
36 | | - build/bldc_test_stand.bin |
| 41 | + build/flasher_args.json |
37 | 42 | build/flash_args |
38 | 43 |
|
39 | 44 | - name: Attach files to release |
40 | 45 | uses: softprops/action-gh-release@v2 |
41 | 46 | if: ${{ github.event.release && github.event.action == 'published' }} |
42 | 47 | with: |
43 | 48 | files: | |
44 | | - build/bldc_test_stand.bin |
| 49 | + build/*.bin |
| 50 | + build/*.elf |
45 | 51 | build/bootloader/bootloader.bin |
46 | 52 | build/partition_table/partition-table.bin |
| 53 | + build/flasher_args.json |
47 | 54 | build/flash_args |
48 | 55 |
|
| 56 | + package: |
| 57 | + name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu) |
| 58 | + needs: build |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + os: [windows-latest, macos-latest, ubuntu-latest] |
| 62 | + runs-on: ${{ matrix.os }} |
| 63 | + steps: |
| 64 | + - uses: esp-cpp/esp-packaged-programmer-action@v1.0.5 |
| 65 | + with: |
| 66 | + zipfile-id: ${{ needs.build.outputs.zipfile-id }} |
| 67 | + programmer-name: 'software-defined-haptics_programmer' |
0 commit comments