image: archlinux
packages:
  - lua
  - meson
  - ninja
  - wayland
  - wayland-protocols
  - mesa
  - xorg-server-xwayland
  - cairo
  - xcb-util-image
  - libinput
  - pixman
  - libxkbcommon
  - gdk-pixbuf2
  - xcb-util-image
  - libcap
  - clang
  - libxcb
  - xcb-util-image
  - xcb-util-cursor
  - xcb-util-wm
  - python
sources:
  - https://github.com/way-cooler/way-cooler
  - https://github.com/swaywm/wlroots
tasks:
  - check-c-style: |
      cd way-cooler
      python ./run-clang-format.py -r ./way-cooler/
  - wlroots: |
      cd wlroots
      # TODO Update to 0.7 when it comes out
      git checkout 94f65e354
      meson --prefix=/usr build -Drootston=false -Dexamples=false
      ninja -C build
      sudo ninja -C build install
  - way-cooler-common: |
      cd way-cooler
      CC=gcc meson build-gcc
      CC=clang meson build-clang
  - way-cooler-gcc: |
      cd way-cooler/build-gcc
      ninja
  - way-cooler-clang: |
      cd way-cooler/build-clang
      ninja

image: archlinux
packages:
  - lua
  - meson
  - ninja
  - wayland
  - wayland-protocols
  - mesa
  - xorg-server-xwayland
  - cairo
  - xcb-util-image
  - libinput
  - pixman
  - libxkbcommon
  - gdk-pixbuf2
  - xcb-util-image
  - libcap
  - clang
  - libxcb
  - xcb-util-image
  - xcb-util-cursor
  - xcb-util-wm
  - python
sources:
  - https://github.com/way-cooler/way-cooler
  - https://github.com/swaywm/wlroots
tasks:
  - check-c-style: |
      cd way-cooler
      python ./run-clang-format.py -r ./way-cooler/
  - wlroots: |
      cd wlroots
      # TODO Update to 0.8.2 or 0.9.0 whichever comes first
      git checkout cde544de
      meson --prefix=/usr build -Drootston=false -Dexamples=false
      ninja -C build
      sudo ninja -C build install
  - way-cooler-common: |
      cd way-cooler
      CC=gcc meson build-gcc
      CC=clang meson build-clang
  - way-cooler-gcc: |
      cd way-cooler/build-gcc
      ninja
  - way-cooler-clang: |
      cd way-cooler/build-clang
      ninja

Use forked version of wlroots
Use forked version of wlroots
