Skip to content

Commit

Permalink
CI: add meson build and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Consolatis authored and johanmalm committed Apr 18, 2024
1 parent 1cc3881 commit 43c966f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ jobs:
cmake
git
libxml2
meson
qt6-base
qt6-tools
gtk3
)
pacman -S --noconfirm ${packages[@]}
Expand All @@ -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
Expand All @@ -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

0 comments on commit 43c966f

Please sign in to comment.