aboutsummaryrefslogtreecommitdiff
path: root/.builds/archlinux.yml
blob: 2d62d0d1f90e45aede970a746b600e6cc60cdd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: archlinux
packages:
  - clang
  - ffmpeg
  - libinput
  - libxkbcommon
  - mesa
  - meson
  - pixman
  - wayland
  - wayland-protocols
  - xcb-util-errors
  - xcb-util-image
  - xcb-util-renderutil
  - xcb-util-wm
  - xorg-xwayland
  - seatd
  - vulkan-icd-loader
  - vulkan-headers
  - glslang
  - hwdata
sources:
  - https://gitlab.freedesktop.org/wlroots/wlroots.git
tasks:
  - setup: |
      cd wlroots
      CC=gcc meson build-gcc --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr -Db_sanitize=address,undefined
      CC=clang meson build-clang --fatal-meson-warnings -Dauto_features=enabled
  - gcc: |
      cd wlroots/build-gcc
      ninja
      sudo ninja install
      cd ../tinywl
      CFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" make
  - clang: |
      cd wlroots/build-clang
      ninja
  - smoke-test: |
      cd wlroots/tinywl
      sudo modprobe vkms
      udevadm settle
      export WLR_BACKENDS=drm
      export WLR_RENDERER=pixman
      export WLR_DRM_DEVICES=/dev/dri/by-path/platform-vkms-card
      sudo chmod ugo+rw /dev/dri/by-path/platform-vkms-card
      sudo -E seatd-launch -- ./tinywl -s 'kill $PPID' || [ $? = 143 ]