|
11 | 11 | permissions: read-all |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - Build: |
| 14 | + BuildSdk: |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + board: [ |
| 18 | + { id: generic-esp32, arch: esp32 }, |
| 19 | + { id: generic-esp32c6, arch: esp32c6 }, |
| 20 | + { id: generic-esp32p4, arch: esp32p4 }, |
| 21 | + { id: generic-esp32s3, arch: esp32s3 }, |
| 22 | + ] |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - uses: actions/checkout@v4 |
| 26 | + - name: "Build SDK" |
| 27 | + uses: ./.github/actions/build-sdk |
| 28 | + with: |
| 29 | + board_id: ${{ matrix.board.id }} |
| 30 | + arch: ${{ matrix.board.arch }} |
| 31 | + BuildFirmware: |
15 | 32 | strategy: |
16 | 33 | matrix: |
17 | 34 | board: [ |
@@ -52,44 +69,45 @@ jobs: |
52 | 69 | { id: waveshare-s3-touch-lcd-43, arch: esp32s3 } |
53 | 70 | ] |
54 | 71 | runs-on: ubuntu-latest |
| 72 | + needs: [ BuildSdk ] |
55 | 73 | steps: |
56 | 74 | - uses: actions/checkout@v4 |
57 | | - - name: "Build" |
| 75 | + - name: "Build Firmware" |
58 | 76 | uses: ./.github/actions/build-firmware |
59 | 77 | with: |
60 | 78 | board_id: ${{ matrix.board.id }} |
61 | 79 | arch: ${{ matrix.board.arch }} |
62 | | - Bundle: |
| 80 | + BundleFirmware: |
63 | 81 | runs-on: ubuntu-latest |
64 | | - needs: [ Build ] |
| 82 | + needs: [ BuildFirmware ] |
65 | 83 | if: | |
66 | 84 | (github.event_name == 'push' && github.ref == 'refs/heads/main') || |
67 | 85 | (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) |
68 | 86 | steps: |
69 | 87 | - uses: actions/checkout@v4 |
70 | | - - name: "Bundle" |
| 88 | + - name: "Bundle Firmware" |
71 | 89 | uses: ./.github/actions/bundle-firmware |
72 | | - PublishSnapshot: |
| 90 | + PublishFirmwareSnapshot: |
73 | 91 | runs-on: ubuntu-latest |
74 | | - needs: [ Bundle ] |
| 92 | + needs: [ BundleFirmware ] |
75 | 93 | if: (github.event_name == 'push' && github.ref == 'refs/heads/main') |
76 | 94 | steps: |
77 | 95 | - uses: actions/checkout@v4 |
78 | | - - name: "Publish Snapshot" |
| 96 | + - name: "Publish Firmware Snapshot" |
79 | 97 | env: |
80 | 98 | CDN_ID: ${{ secrets.CDN_ID }} |
81 | 99 | CDN_TOKEN_NAME: ${{ secrets.CDN_TOKEN_NAME }} |
82 | 100 | CDN_TOKEN_VALUE: ${{ secrets.CDN_TOKEN_VALUE }} |
83 | 101 | uses: ./.github/actions/publish-firmware |
84 | 102 | with: |
85 | 103 | cdn_version: snapshot |
86 | | - PublishRelease: |
| 104 | + PublishFirmwareStable: |
87 | 105 | runs-on: ubuntu-latest |
88 | | - needs: [ Bundle ] |
| 106 | + needs: [ BundleFirmware ] |
89 | 107 | if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) |
90 | 108 | steps: |
91 | 109 | - uses: actions/checkout@v4 |
92 | | - - name: "Publish Stable" |
| 110 | + - name: "Publish Firmware Stable" |
93 | 111 | env: |
94 | 112 | CDN_ID: ${{ secrets.CDN_ID }} |
95 | 113 | CDN_TOKEN_NAME: ${{ secrets.CDN_TOKEN_NAME }} |
|
0 commit comments