From 43c966f1f3214e208beaa19bb9de2e900bd9485e Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:05:52 +0200 Subject: [PATCH] CI: add meson build and run tests --- .github/workflows/build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dfba57c..27c6004 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,8 +47,10 @@ jobs: cmake git libxml2 + meson qt6-base qt6-tools + gtk3 ) pacman -S --noconfirm ${packages[@]} @@ -57,10 +59,11 @@ jobs: run: | apt-get update apt-get upgrade -y - apt-get install -y cmake clang g++ gcc git \ + apt-get install -y cmake clang g++ gcc git meson \ libglib2.0 libgl1-mesa-dev libxml2-dev pkg-config \ qt6-base-dev qt6-l10n-tools \ - qt6-tools-dev qt6-tools-dev-tools + qt6-tools-dev qt6-tools-dev-tools \ + libgtk-3-dev # These builds are executed on all runners - name: Build with gcc @@ -82,3 +85,16 @@ jobs: -B build-clang \ -S . cmake --build build-clang --verbose + + - name: Meson build with gcc + run: | + export CC=gcc + export CXX=g++ + meson setup build-meson-gcc --werror + meson compile -C build-meson-gcc + + - name: Run tests + run: | + build-meson-gcc/tests/t1000_add_xpath_node + build-meson-gcc/tests/t1001_nodenames +