]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add CI
authorJohan Malm <johanmalm@users.noreply.github.com>
Tue, 21 Sep 2021 20:49:31 +0000 (21:49 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 20:49:31 +0000 (21:49 +0100)
.github/workflows/main.yml [new file with mode: 0644]

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..c1a18f2
--- /dev/null
@@ -0,0 +1,22 @@
+name: CI
+on: [push, pull_request]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container: archlinux:base-devel
+    steps:
+      - name: install dependencies
+        run: |
+          pacman-key --init
+          pacman -Syu --noconfirm
+          pacman -S --noconfirm git meson clang wlroots libdrm libinput \
+            wayland-protocols cairo pango libxml2 xorg-xwayland
+      - name: build with gcc
+        run: |
+          meson build-gcc/ --werror
+          ninja -C build-gcc/
+      - name: build with clang
+        run: |
+          meson build-clang/ --werror
+          ninja -C build-clang/
+