From 7f42dc921c6a46b9f9a2453546a4a2689d5c6fdf Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Fri, 2 Sep 2022 05:30:12 +0200 Subject: [PATCH] CI: Additionally build without xwayland --- .github/workflows/build.yml | 38 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3285d83d..dc69932b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,30 +78,24 @@ jobs: - name: Build with gcc run: | - if test -z "$SSH_HOST"; then + test -n "$SSH_HOST" && TARGET="ssh $SSH_HOST /bin/sh" || TARGET=sh + echo ' + cd "$GITHUB_WORKSPACE" export CC=gcc - meson build-gcc/ --werror - meson compile -C build-gcc/ - else - echo ' - cd "$GITHUB_WORKSPACE" - export CC=gcc - meson build-gcc/ --werror - meson compile -C build-gcc/ - ' | ssh "$SSH_HOST" /bin/sh - fi + meson build-gcc --werror + meson build-gcc-no-xwayland -Dxwayland=disabled --werror + meson compile -C build-gcc + meson compile -C build-gcc-no-xwayland + ' | $TARGET - name: Build with clang run: | - if test -z "$SSH_HOST"; then + test -n "$SSH_HOST" && TARGET="ssh $SSH_HOST /bin/sh" || TARGET=sh + echo ' + cd "$GITHUB_WORKSPACE" export CC=clang - meson build-clang/ --werror - meson compile -C build-clang/ - else - echo ' - cd "$GITHUB_WORKSPACE" - export CC=clang - meson build-clang/ --werror - meson compile -C build-clang/ - ' | ssh "$SSH_HOST" /bin/sh - fi + meson build-clang --werror + meson build-clang-no-xwayland -Dxwayland=disabled --werror + meson compile -C build-clang + meson compile -C build-clang-no-xwayland + ' | $TARGET