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
  - rustup
  - clang
  - libxcb
  - xcb-util-image
  - xcb-util-cursor
  - xcb-util-wm
sources:
  - https://github.com/way-cooler/way-cooler
tasks:
  - setup: |
      rustup install stable
      rustup install nightly
      rustup default stable
      rustup component add rustfmt-preview --toolchain nightly
      rustup component add clippy
  - way-cooler-common: |
      CC=gcc meson build-gcc
      CC=clang meson build-clang
  - way-cooler-gcc: |
      cd build-gcc
      ninja
  - way-cooler-clang: |
      cd 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
  - rustup
  - clang
  - libxcb
  - xcb-util-image
  - xcb-util-cursor
  - xcb-util-wm
sources:
  - https://github.com/way-cooler/way-cooler
tasks:
  - setup: |
      rustup install stable
      rustup install nightly
      rustup default stable
      rustup component add rustfmt-preview --toolchain nightly
      rustup component add clippy
  - 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
  - way-cooler-client-test: |
      cd way-cooler/client
      cargo test --verbose
      cargo +nightly fmt --all -- --check
      # TODO enable clippy

Test and format the Rust code in CI
Test and format the Rust code in CI
