Add CI build for rp2 port (#44)

This commit is contained in:
eudoxos 2021-09-09 14:11:19 +02:00 committed by GitHub
parent b765a2bb45
commit a59bd67438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/rp2_port.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build lv_micropython rp2 port
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
board: [PICO]
steps:
- uses: actions/checkout@v2
- name: arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
- name: Initialize lv_bindings submodule
run: git submodule update --init --recursive lib/lv_bindings
- name: Initialize Micropython submodules
run: make -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../lib/lv_bindings/bindings.cmake submodules
- name: Build mpy-cross
run: make -j $(nproc) -C mpy-cross
- name: Build ${{ matrix.board }}
run: make -j $(nproc) -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../lib/lv_bindings/bindings.cmake
- uses: actions/upload-artifact@v2
if: ${{ env.GITHUB_EVENT_NAME }} == 'push'
with:
name: ${{ matrix.board }}.hex
path: ports/rp2/build-${{ matrix.board }}/firmware.elf