mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 04:37:55 +08:00
b97b928b21
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Install LVGL using CMake / build-examples (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Has been cancelled
Hardware Performance Test / Hardware Performance Benchmark (push) Has been cancelled
Hardware Performance Test / HW Benchmark - Save PR Number (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
103 lines
4.0 KiB
YAML
103 lines
4.0 KiB
YAML
name: MicroPython CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
|
|
# Ensure that only one commit will be running tests at a time on each PR
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
|
name: Build ${{ matrix.port }} port
|
|
runs-on: ubuntu-24.04
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
port: ['unix', 'stm32', 'rp2', 'esp32']
|
|
steps:
|
|
- uses: ammaraskar/gcc-problem-matcher@master
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- 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 libfreetype-dev librlottie-dev libavformat-dev libavcodec-dev libswscale-dev libavutil-dev doxygen
|
|
python3 -m pip install pycparser
|
|
|
|
- name: Clone lv_micropython
|
|
run: |
|
|
git clone https://github.com/lvgl/lv_micropython.git .
|
|
git checkout master
|
|
|
|
- name: Initialize LVGL bindings submodule
|
|
run: git submodule update --init --recursive user_modules/lv_binding_micropython
|
|
|
|
- name: Update ${{ matrix.port }} port submodules
|
|
if: matrix.port != 'rp2'
|
|
run: make -C ports/${{ matrix.port }} DEBUG=1 USER_C_MODULES=../../user_modules/lv_binding_micropython/micropython.cmake submodules
|
|
|
|
- name: Checkout LVGL submodule
|
|
working-directory: ./user_modules/lv_binding_micropython/lvgl
|
|
run: |
|
|
git fetch --force ${{ github.event.repository.html_url }} "+refs/heads/*:refs/remotes/origin/*"
|
|
git fetch --force ${{ github.event.repository.html_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
|
|
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
|
|
git submodule update --init --recursive
|
|
- name: Build mpy-cross
|
|
run: make -j $(nproc) -C mpy-cross
|
|
|
|
# STM32 port
|
|
- name: Build STM32 port
|
|
if: matrix.port == 'stm32'
|
|
run: |
|
|
source tools/ci.sh && ci_stm32_setup
|
|
make -C ports/stm32 BOARD=STM32F7DISC USER_C_MODULES=../../user_modules/lv_binding_micropython/micropython.cmake submodules
|
|
make -j $(nproc) -C ports/stm32 BOARD=STM32F7DISC USER_C_MODULES=../../user_modules/lv_binding_micropython/micropython.cmake
|
|
|
|
# Raspberry Pi Pico port
|
|
- name: Build Raspberry Pi PICO port
|
|
if: matrix.port == 'rp2'
|
|
run: |
|
|
source tools/ci.sh && ci_rp2_setup
|
|
make -C ports/rp2 BOARD=RPI_PICO submodules
|
|
make -j $(nproc) -C ports/rp2 BOARD=RPI_PICO USER_C_MODULES=../../user_modules/lv_binding_micropython/micropython.cmake
|
|
|
|
# ESP32 port
|
|
- name: Build ESP32 port
|
|
if: matrix.port == 'esp32'
|
|
run: |
|
|
source tools/ci.sh && ci_esp32_idf_setup
|
|
source tools/ci.sh && ci_esp32_build_cmod_spiram_s2
|
|
source tools/ci.sh && ci_esp32_build_s3_c3
|
|
|
|
# Unix port
|
|
- name: Build Unix port
|
|
if: matrix.port == 'unix'
|
|
run: make -j $(nproc) -C ports/unix DEBUG=1 VARIANT=lvgl LV_CFLAGS="-DMICROPY_LV_USE_LOG=0"
|
|
|
|
- name: Install requirements for the test
|
|
run: |
|
|
python3 -m pip install pillow
|
|
mkdir user_modules/lv_binding_micropython/lvgl/tests/micropy_test/artifacts
|
|
|
|
# Tests
|
|
- name: Run tests
|
|
if: success() && matrix.port == 'unix'
|
|
run: |
|
|
export XDG_RUNTIME_DIR=/tmp
|
|
python3 user_modules/lv_binding_micropython/lvgl/tests/micropy_test/__init__.py --artifact-path=user_modules/lv_binding_micropython/lvgl/tests/micropy_test/artifacts --mpy-path=ports/unix/build-lvgl/micropython
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-artifacts
|
|
path: user_modules/lv_binding_micropython/lvgl/tests/micropy_test/artifacts
|