~novakane/rivercarro

a1623d0b70690c7edf04cf0f183f1287128bc51b — Hugo Machet 4 months ago 5b0f495
ci: Build wayland/wlroots from source

- Use mirrors till fdo gitlab connectivity problems are fixed
- Use alpine/edge instead of arch
- Move .builds/arch.yml to .build.yml
2 files changed, 55 insertions(+), 14 deletions(-)

A .build.yml
D .builds/arch.yml
A .build.yml => .build.yml +55 -0
@@ 0,0 1,55 @@
image: alpine/edge
packages:
  - eudev-dev
  - libinput-dev
  - libseat-dev
  - mesa-dev
  - libffi-dev
  - expat-dev
  - libxkbcommon-dev
  - xcb-util-image-dev
  - xcb-util-renderutil-dev
  - xcb-util-wm-dev
  - pixman-dev
  - libevdev-dev
  - wayland-protocols
  - meson
  - scdoc
  - tar
  - wget
  - xz
sources:
  # Use mirrors for wayland/wlroots as fdo gitlab has some connectivity
  # issue lastly.
  - https://git.sr.ht/~novakane/wlroots
  - https://git.sr.ht/~novakane/wayland
  - https://github.com/riverwm/river.git
  - https://git.sr.ht/~novakane/rivercarro
tasks:
  - install_deps: |
      cd wayland
      git checkout 1.20.0
      meson build -Ddocumentation=false -Dtests=false --prefix /usr
      sudo ninja -C build install
      cd ..

      cd wlroots
      git checkout 0.15.0
      meson build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \
            -Dwerror=false -Db_ndebug=false -Dxwayland=disabled --prefix /usr
      sudo ninja -C build/ install
      cd ..

      wget https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz
      tar -xvf zig-linux-x86_64-0.9.0.tar.xz
      sudo mv zig-linux-x86_64-0.9.0/zig /usr/bin/
      sudo mv zig-linux-x86_64-0.9.0/lib /usr/lib/zig

      cd river
      sudo zig build --prefix /usr
  - build: |
      cd rivercarro
      zig build
  - format: |
      cd rivercarro
      zig fmt --check src/

D .builds/arch.yml => .builds/arch.yml +0 -14
@@ 1,14 0,0 @@
image: archlinux
packages:
  - zig
  - wayland
  - river
sources:
  - https://git.sr.ht/~novakane/rivercarro
tasks:
  - build: |
      cd rivercarro
      zig build
  - format: |
      cd rivercarro
      zig fmt src/*