|
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: v5.2.2 |
| 26 | + esp_idf_version: release-v5.4 |
25 | 27 | target: esp32 |
26 | 28 | path: '.' |
27 | 29 |
|
28 | 30 | - name: Upload Build Outputs |
29 | | - uses: actions/upload-artifact@v3 |
| 31 | + uses: actions/upload-artifact@v4 |
| 32 | + id: zip_step |
30 | 33 | with: |
31 | 34 | name: build-artifacts |
32 | 35 | path: | |
| 36 | + build/*.bin |
| 37 | + build/*.elf |
33 | 38 | build/bootloader/bootloader.bin |
34 | 39 | build/partition_table/partition-table.bin |
35 | | - build/*.bin |
| 40 | + build/flasher_args.json |
36 | 41 | build/flash_args |
37 | 42 |
|
38 | 43 | - name: Attach files to release |
39 | | - uses: softprops/action-gh-release@v1 |
| 44 | + uses: softprops/action-gh-release@v2 |
40 | 45 | if: ${{ github.event.release && github.event.action == 'published' }} |
41 | 46 | with: |
42 | 47 | files: | |
43 | 48 | build/*.bin |
| 49 | + build/*.elf |
44 | 50 | build/bootloader/bootloader.bin |
45 | 51 | build/partition_table/partition-table.bin |
| 52 | + build/flasher_args.json |
46 | 53 | build/flash_args |
47 | 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.5 |
| 64 | + with: |
| 65 | + zipfile-id: ${{ needs.build.outputs.zipfile-id }} |
| 66 | + programmer-name: 'camera-streamer_programmer' |
0 commit comments