Skip to content

Commit bf72db2

Browse files
committed
chore: Add Embed Fire and WonderK to Actions build script
1 parent 94760c5 commit bf72db2

1 file changed

Lines changed: 49 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
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]
1515
runs-on: ubuntu-latest
1616
services:
1717
registry:
@@ -209,6 +209,54 @@ jobs:
209209
path: ${{ steps.extract-tzt.outputs.destination }}
210210
name: build-tzt
211211

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+
212260
- name: Move cache
213261
run: |
214262
rm -rf /tmp/.buildx-cache

0 commit comments

Comments
 (0)