lv_binding_micropython added a dependency on GNU parallel[1] to allow the tests to be run in parallel. [1] https://www.gnu.org/software/parallel/
34 lines
972 B
YAML
34 lines
972 B
YAML
name: Build lv_micropython unix port
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, lvgl_javascript ]
|
|
pull_request:
|
|
branches: [ master, lvgl_javascript ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
|
sudo apt-get update -y -qq
|
|
sudo apt-get install libsdl2-dev parallel
|
|
- name: Initialize lv_bindings submodule
|
|
run: git submodule update --init --recursive lib/lv_bindings
|
|
- name: Update submodules
|
|
run: make -C ports/unix VARIANT=dev DEBUG=1 submodules
|
|
- name: Build mpy-cross
|
|
run: make -j $(nproc) -C mpy-cross
|
|
- name: Build the unix port
|
|
run: make -j $(nproc) -C ports/unix VARIANT=dev DEBUG=1
|
|
- name: Run tests
|
|
run: |
|
|
export XDG_RUNTIME_DIR=/tmp
|
|
lib/lv_bindings/tests/run.sh
|
|
|