CI: Use git master for xkeyboard-config on Linux
authorPierre Le Marre <dev@wismill.eu>
Mon, 18 Sep 2023 11:17:30 +0000 (13:17 +0200)
committerWismill <dev@wismill.eu>
Mon, 18 Sep 2023 14:07:09 +0000 (16:07 +0200)
xkeyboard-config and xkbcommon projects are quite intertwined so we
want things to blow up early.

It also solves an issue with the x11comp test.

.github/workflows/linux.yml

index 21b20b5..bd1cfe6 100644 (file)
@@ -31,6 +31,19 @@ jobs:
           sudo apt install -y \
             doxygen libxcb-xkb-dev valgrind ninja-build \
             libwayland-dev wayland-protocols bison graphviz
+      - name: Install xkeyboard-config
+        run: |
+          # Install master version of xkeyboard-config, in order to ensure
+          # its latest version works well with xkbcommon.
+          # HACK: We use meson to install, while it would be cleaner
+          #       to create a proper package to install or use some PPA.
+          pushd ~
+          git clone --depth=1 https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config.git
+          cd "xkeyboard-config"
+          BUILDDIR=build
+          meson setup $BUILDDIR -Dprefix=/usr
+          meson install -C $BUILDDIR
+          popd
       - name: Setup
         run: |
           # -gdwarf-4 - see https://github.com/llvm/llvm-project/issues/56550.