Files
lvgl/.github/workflows/distribution.yml
T
André Costa 066d8db0b5
Arduino Lint / lint (push) Canceled after 0s
Build Examples with C++ Compiler / build-examples (push) Canceled after 0s
MicroPython CI / Build esp32 port (push) Canceled after 0s
MicroPython CI / Build rp2 port (push) Canceled after 0s
MicroPython CI / Build stm32 port (push) Canceled after 0s
MicroPython CI / Build unix port (push) Canceled after 0s
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Canceled after 0s
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Canceled after 0s
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Canceled after 0s
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Canceled after 0s
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Canceled after 0s
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Canceled after 0s
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Canceled after 0s
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Canceled after 0s
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Canceled after 0s
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Canceled after 0s
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Canceled after 0s
C/C++ CI / Build ESP IDF ESP32S3 (push) Canceled after 0s
C/C++ CI / Run tests with 32bit build (push) Canceled after 0s
C/C++ CI / Run tests with 64bit build (push) Canceled after 0s
BOM Check / bom-check (push) Canceled after 0s
Verify GDB constants are up-to-date / verify-gdb-consts (push) Canceled after 0s
Verify the widget property name / verify-property-name (push) Canceled after 0s
Verify code formatting / verify-formatting (push) Canceled after 0s
Compare file templates with file names / template-check (push) Canceled after 0s
Code Generation / Code Generation (push) Canceled after 0s
Build Docs / build-and-deploy (push) Canceled after 0s
Build .deb packages / build (push) Canceled after 0s
Validate pkg-config and CMake config / cmake (linux) (push) Canceled after 0s
Validate pkg-config and CMake config / pkgconfig (linux) (push) Canceled after 0s
Validate pkg-config and CMake config / cmake (linux-3d) (push) Canceled after 0s
Validate pkg-config and CMake config / pkgconfig (linux-3d) (push) Canceled after 0s
Test API JSON generator / Test API JSON (push) Canceled after 0s
Install LVGL using CMake / build-examples (private) (push) Canceled after 0s
Install LVGL using CMake / build-examples (public) (push) Canceled after 0s
Check Makefile / Build using Makefile (push) Canceled after 0s
Check Makefile for UEFI / Build using Makefile for UEFI (push) Canceled after 0s
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Canceled after 0s
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Canceled after 0s
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Canceled after 0s
Hardware Performance Test / Hardware Performance Benchmark (push) Canceled after 0s
Hardware Performance Test / HW Benchmark - Save PR Number (push) Canceled after 0s
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Canceled after 0s
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Canceled after 0s
Port repo release update / run-release-branch-updater (push) Canceled after 0s
Static Checks / Static Checks (push) Canceled after 0s
Verify Font License / verify-font-license (push) Canceled after 0s
Verify Kconfig / verify-kconfig (push) Canceled after 0s
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Skipped
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Skipped
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Skipped
build(cmake): remove python package dependencies for gcc/clang (#10400)
2026-07-30 15:19:11 +00:00

91 lines
3.4 KiB
YAML

name: Validate pkg-config and CMake config
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
validate-config:
name: ${{ matrix.method }} (${{ matrix.config }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
config: [linux, linux-3d]
method: [pkgconfig, cmake]
steps:
- uses: actions/checkout@v7
- name: Install build dependencies
run: |
sudo apt-get update && sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:andrecosta/fastgltf
sudo apt-get update && sudo apt-get install -y \
cmake \
ninja-build \
python3 \
pkg-config \
python3-kconfiglib \
libwebp-dev \
libevdev-dev \
libdrm-dev \
libgbm-dev \
wayland-protocols \
libwayland-bin \
libwayland-dev \
libegl-dev \
libxkbcommon-dev \
libsimdjson-dev \
libfastgltf-dev \
libsdl2-dev \
libsdl2-image-dev \
libfreetype-dev \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev
- name: Build and install LVGL
run: |
cmake -B build \
-GNinja \
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/lvgl-install \
-DLV_BUILD_USE_KCONFIG=ON \
-DLV_BUILD_DEFCONFIG_PATH=configs/defconfigs/${{ matrix.config }}.defconfig
cmake --build build
cmake --install build
- name: Test pkg-config flags resolve correctly
if: matrix.method == 'pkgconfig'
run: |
export PKG_CONFIG_PATH=${{ github.workspace }}/lvgl-install/lib/pkgconfig:$PKG_CONFIG_PATH
pkg-config --exists lvgl
pkg-config --modversion lvgl
# Compile and link the same test binary using pkg-config output
g++ tests/test_install/lvgl_${{ matrix.config }}.c -o main \
$(pkg-config --cflags --libs --static lvgl)
- name: Test CMake find_package resolves correctly
if: matrix.method == 'cmake'
run: |
# Write a minimal CMakeLists.txt that consumes LVGL as an external package
mkdir -p /tmp/consumer
cat > /tmp/consumer/CMakeLists.txt << 'EOF'
cmake_minimum_required(VERSION 3.14)
project(lvgl_consumer)
set(CMAKE_PREFIX_PATH "${{ github.workspace }}/lvgl-install")
find_package(lvgl REQUIRED)
add_executable(main lvgl_${{ matrix.config }}.c)
target_link_libraries(main PRIVATE lvgl::lvgl)
EOF
cp tests/test_install/lvgl_${{ matrix.config }}.c /tmp/consumer/
cmake -B /tmp/consumer/build /tmp/consumer
cmake --build /tmp/consumer/build -j$(nproc)