2020-09-05 14:46:07 +03:00
|
|
|
name: Build Micropython with LVGL submodule
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-10-05 11:53:02 +03:00
|
|
|
branches: [ master, dev ]
|
2020-09-05 14:46:07 +03:00
|
|
|
pull_request:
|
2020-10-05 11:53:02 +03:00
|
|
|
branches: [ master, dev ]
|
2020-09-05 14:46:07 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install SDL
|
|
|
|
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
|
|
|
|
- name: Clone lv_micropython
|
|
|
|
run: git clone https://github.com/lvgl/lv_micropython.git .
|
|
|
|
- name: Update submodules
|
|
|
|
run: git submodule update --init --recursive
|
2020-09-11 02:20:59 +03:00
|
|
|
- name: Checkout LVGL submodule
|
2020-09-05 14:46:07 +03:00
|
|
|
working-directory: ./lib/lv_bindings/lvgl
|
|
|
|
run: |
|
2020-09-11 02:20:59 +03:00
|
|
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
|
2020-09-15 13:19:56 +03:00
|
|
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
|
2020-09-11 02:20:59 +03:00
|
|
|
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
|
|
|
|
git submodule update --init --recursive
|
2020-09-05 14:46:07 +03:00
|
|
|
- name: Build mpy-cross
|
|
|
|
run: make -j $(nproc) -C mpy-cross
|
|
|
|
- name: Build the unix port
|
|
|
|
run: make -j $(nproc) -C ports/unix
|
|
|
|
- name: Run advanced_demo
|
|
|
|
run: >
|
|
|
|
echo "import gc,utime;
|
|
|
|
utime.sleep(5);
|
|
|
|
gc.collect();
|
|
|
|
utime.sleep(5)" |
|
|
|
|
ports/unix/micropython -i lib/lv_bindings/examples/advanced_demo.py
|
|
|
|
|