|
11 | 11 | build: |
12 | 12 | strategy: |
13 | 13 | matrix: |
14 | | - device: [maixpy_m5stickv, maixpy_amigo, maixpy_dock, maixpy_yahboom, maixpy_cube, maixpy_wonder_mv, maixpy_tzt] |
| 14 | + device: [maixpy_m5stickv, maixpy_amigo, maixpy_dock, maixpy_yahboom, maixpy_cube, maixpy_wonder_mv, maixpy_tzt, maixpy_embed_fire, maixpy_wonder_k] |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | services: |
17 | 17 | registry: |
@@ -209,6 +209,54 @@ jobs: |
209 | 209 | path: ${{ steps.extract-tzt.outputs.destination }} |
210 | 210 | name: build-tzt |
211 | 211 |
|
| 212 | + - name: Build for Embed Fire |
| 213 | + if: matrix.device == 'maixpy_embed_fire' |
| 214 | + uses: docker/build-push-action@v6 |
| 215 | + with: |
| 216 | + context: . |
| 217 | + build-args: DEVICE=maixpy_embed_fire |
| 218 | + push: true |
| 219 | + tags: localhost:5000/selfcustody/krux-builder-embed-fire:latest |
| 220 | + cache-from: type=local,src=/tmp/.buildx-cache |
| 221 | + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max |
| 222 | + - name: Extract firmware for Embed Fire |
| 223 | + id: extract-embed-fire |
| 224 | + if: matrix.device == 'maixpy_embed_fire' |
| 225 | + uses: shrink/actions-docker-extract@v3 |
| 226 | + with: |
| 227 | + image: localhost:5000/selfcustody/krux-builder-embed-fire:latest |
| 228 | + path: /src/firmware/Kboot/build/. |
| 229 | + - name: Upload firmware for Embed Fire |
| 230 | + if: matrix.device == 'maixpy_embed_fire' |
| 231 | + uses: actions/upload-artifact@v4 |
| 232 | + with: |
| 233 | + path: ${{ steps.extract-embed-fire.outputs.destination }} |
| 234 | + name: build-embed-fire |
| 235 | + |
| 236 | + - name: Build for WonderK |
| 237 | + if: matrix.device == 'maixpy_wonder_k' |
| 238 | + uses: docker/build-push-action@v6 |
| 239 | + with: |
| 240 | + context: . |
| 241 | + build-args: DEVICE=maixpy_wonder_k |
| 242 | + push: true |
| 243 | + tags: localhost:5000/selfcustody/krux-builder-wonder-k:latest |
| 244 | + cache-from: type=local,src=/tmp/.buildx-cache |
| 245 | + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max |
| 246 | + - name: Extract firmware for WonderK |
| 247 | + id: extract-wonder-k |
| 248 | + if: matrix.device == 'maixpy_wonder_k' |
| 249 | + uses: shrink/actions-docker-extract@v3 |
| 250 | + with: |
| 251 | + image: localhost:5000/selfcustody/krux-builder-wonder-k:latest |
| 252 | + path: /src/firmware/Kboot/build/. |
| 253 | + - name: Upload firmware for WonderK |
| 254 | + if: matrix.device == 'maixpy_wonder_k' |
| 255 | + uses: actions/upload-artifact@v4 |
| 256 | + with: |
| 257 | + path: ${{ steps.extract-wonder-k.outputs.destination }} |
| 258 | + name: build-wonder-k |
| 259 | + |
212 | 260 | - name: Move cache |
213 | 261 | run: | |
214 | 262 | rm -rf /tmp/.buildx-cache |
|
0 commit comments