mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
CI: add simple runtime test
This commit is contained in:
parent
cdac800692
commit
53fc8d5e39
4 changed files with 105 additions and 3 deletions
43
.github/workflows/build.yml
vendored
43
.github/workflows/build.yml
vendored
|
|
@ -70,7 +70,8 @@ jobs:
|
|||
pacman-key --init
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm git meson clang wlroots libdrm libinput \
|
||||
wayland-protocols cairo pango libxml2 xorg-xwayland librsvg libdisplay-info
|
||||
wayland-protocols cairo pango libxml2 xorg-xwayland librsvg \
|
||||
libdisplay-info
|
||||
|
||||
- name: Install Debian Testing dependencies
|
||||
if: matrix.name == 'Debian'
|
||||
|
|
@ -78,7 +79,7 @@ jobs:
|
|||
sed -i '/^Types/ s/deb/& deb-src/' /etc/apt/sources.list.d/debian.sources
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
apt-get install -y git gcc clang
|
||||
apt-get install -y git gcc clang gdb xwayland
|
||||
apt-get build-dep -y labwc
|
||||
|
||||
- name: Install FreeBSD dependencies
|
||||
|
|
@ -104,8 +105,9 @@ jobs:
|
|||
xbps-install -Syu
|
||||
xbps-install -y git meson gcc clang pkg-config scdoc \
|
||||
cairo-devel glib-devel libpng-devel librsvg-devel libxml2-devel \
|
||||
pango-devel wlroots0.17-devel
|
||||
pango-devel wlroots0.17-devel gdb bash xorg-server-xwayland
|
||||
|
||||
# These build are executed on all runners
|
||||
- name: Build with gcc
|
||||
run: |
|
||||
echo '
|
||||
|
|
@ -152,6 +154,7 @@ jobs:
|
|||
meson compile -C build-gcc-release
|
||||
' | $TARGET
|
||||
|
||||
# Runtime tests, these run on Debian and Void only (the later due to libmusl being used)
|
||||
- name: Build with clang - release
|
||||
run: |
|
||||
echo '
|
||||
|
|
@ -161,3 +164,37 @@ jobs:
|
|||
-Dbuildtype=release -Db_ndebug=true --werror
|
||||
meson compile -C build-clang-release
|
||||
' | $TARGET
|
||||
|
||||
- name: Build with gcc - runtime test
|
||||
if: matrix.name == 'Debian'
|
||||
run: |
|
||||
echo '
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
export CC=gcc
|
||||
meson setup build-gcc-ci -Dxwayland=enabled -Db_sanitize=undefined --werror
|
||||
meson compile -C build-gcc-ci
|
||||
scripts/ci/smoke-test.sh build-gcc-ci
|
||||
' | $TARGET
|
||||
|
||||
- name: Build with clang - runtime test
|
||||
if: matrix.name == 'Debian'
|
||||
run: |
|
||||
echo '
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
export CC=clang
|
||||
meson setup build-clang-ci -Dxwayland=enabled -Db_sanitize=undefined --werror
|
||||
meson compile -C build-clang-ci
|
||||
scripts/ci/smoke-test.sh build-clang-ci
|
||||
' | $TARGET
|
||||
|
||||
# Void-musl doesn't support sanitizer
|
||||
- name: Build with gcc - runtime test w/o sanitizer
|
||||
if: matrix.name == 'Void-musl'
|
||||
run: |
|
||||
echo '
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
export CC=gcc
|
||||
meson setup build-gcc-ci -Dxwayland=enabled --werror
|
||||
meson compile -C build-gcc-ci
|
||||
scripts/ci/smoke-test.sh build-gcc-ci
|
||||
' | $TARGET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue