]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: Additionally build without xwayland
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 2 Sep 2022 03:30:12 +0000 (05:30 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 2 Sep 2022 04:11:01 +0000 (06:11 +0200)
.github/workflows/build.yml

index 3285d83d97c2b1b7d3004a784d4d4f3fcb91b96b..dc69932b20a9f2608e814eea9411fc5782648cc7 100644 (file)
@@ -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