From f0d392b58a9984764eabaef1a587f5ebd5514b1d Mon Sep 17 00:00:00 2001 From: odudex Date: Tue, 24 Sep 2024 16:06:21 -0300 Subject: [PATCH] add WonderMV Github actions build --- .github/workflows/build.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 725fce74..a855cb89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,12 +5,13 @@ on: branches: - main - develop + - 'release-**' jobs: build: strategy: matrix: - device: [maixpy_m5stickv, maixpy_amigo, maixpy_bit, maixpy_dock, maixpy_yahboom, maixpy_cube] + device: [maixpy_m5stickv, maixpy_amigo, maixpy_bit, maixpy_dock, maixpy_yahboom, maixpy_cube, maixpy_wonder_mv] runs-on: ubuntu-latest services: registry: @@ -183,6 +184,30 @@ jobs: with: path: ${{ steps.extract-cube.outputs.destination }} name: build-cube + + - name: Build for WonderMV + if: matrix.device == 'maixpy_wonder_mv' + uses: docker/build-push-action@v6 + with: + context: . + build-args: DEVICE=maixpy_cube + push: true + tags: localhost:5000/selfcustody/krux-builder-wonder-mv:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + - name: Extract firmware for WonderMV + id: extract-wonder-mv + if: matrix.device == 'maixpy_wonder_mv' + uses: shrink/actions-docker-extract@v3 + with: + image: localhost:5000/selfcustody/krux-builder-wonder-mv:latest + path: /src/firmware/Kboot/build/. + - name: Upload firmware for WonderMV + if: matrix.device == 'maixpy_wonder_mv' + uses: actions/upload-artifact@v4 + with: + path: ${{ steps.extract-cube.outputs.destination }} + name: build-wonder-mv - name: Move cache run: |