2020-08-11 13:35:34 -07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-01-29 04:48:50 -08:00
|
|
|
- '[0-9]+.[0-9]+.x'
|
2020-08-11 13:35:34 -07:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-01-29 04:48:50 -08:00
|
|
|
- '[0-9]+.[0-9]+.x'
|
2020-04-19 15:18:01 -07:00
|
|
|
|
2021-12-20 20:02:17 -08:00
|
|
|
name: voidlinux glibc
|
2020-04-19 15:18:01 -07:00
|
|
|
|
|
|
|
jobs:
|
2020-07-17 12:57:51 -07:00
|
|
|
default_build:
|
2021-10-11 03:44:46 -07:00
|
|
|
name: build/test/fmt
|
2020-04-19 15:18:01 -07:00
|
|
|
runs-on: ubuntu-latest
|
2020-07-17 12:57:51 -07:00
|
|
|
container: voidlinux/voidlinux:latest
|
2020-04-19 15:18:01 -07:00
|
|
|
|
|
|
|
steps:
|
2020-11-19 12:27:45 -08:00
|
|
|
- name: install deps
|
2020-04-19 15:18:01 -07:00
|
|
|
run: |
|
2021-09-27 10:00:10 -07:00
|
|
|
xbps-install -Sy xbps
|
2022-05-29 10:15:28 -07:00
|
|
|
xbps-install -Suy
|
2021-12-20 20:02:17 -08:00
|
|
|
# wayland/wlroots dependencies as well as we build from source
|
2021-09-27 10:00:10 -07:00
|
|
|
xbps-install -y MesaLib-devel libseat-devel eudev-libudev-devel libdrm-devel \
|
2021-12-20 20:02:17 -08:00
|
|
|
libinput-devel libxkbcommon-devel pixman-devel expat-devel libxml2-devel \
|
|
|
|
libffi-devel wayland-protocols xcb-util-errors-devel xcb-util-wm-devel \
|
|
|
|
xcb-util-renderutil-devel libxcb-devel xcb-util-cursor-devel xcb-util-devel \
|
|
|
|
xcb-util-image-devel xcb-util-keysyms-devel xcb-util-xrm-devel \
|
2022-07-10 10:00:17 -07:00
|
|
|
xorg-server-xwayland pkg-config meson git gcc pkgconf scdoc wget tar xz \
|
|
|
|
libevdev-devel
|
2021-12-20 20:02:17 -08:00
|
|
|
|
|
|
|
git clone https://gitlab.freedesktop.org/wayland/wayland.git
|
|
|
|
cd wayland
|
|
|
|
git checkout 1.20.0
|
|
|
|
meson build -Ddocumentation=false -Dtests=false --prefix /usr
|
|
|
|
ninja -C build install
|
|
|
|
cd ..
|
2021-06-23 06:14:23 -07:00
|
|
|
|
2021-12-20 20:02:17 -08:00
|
|
|
git clone https://gitlab.freedesktop.org/wlroots/wlroots.git
|
2021-06-23 06:14:23 -07:00
|
|
|
cd wlroots
|
2022-02-16 01:21:12 -08:00
|
|
|
git checkout 0.15.1
|
2021-12-20 20:02:17 -08:00
|
|
|
meson build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \
|
|
|
|
-Dwerror=false -Db_ndebug=false --prefix /usr
|
2021-06-23 06:14:23 -07:00
|
|
|
ninja -C build install
|
2021-10-11 03:44:46 -07:00
|
|
|
|
2022-05-01 10:03:32 -07:00
|
|
|
wget -nv https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz
|
2022-02-16 01:21:12 -08:00
|
|
|
tar -xvf zig-linux-x86_64-0.9.1.tar.xz
|
|
|
|
mv zig-linux-x86_64-0.9.1/zig /usr/bin/
|
|
|
|
mv zig-linux-x86_64-0.9.1/lib /usr/lib/zig
|
2021-10-11 03:44:46 -07:00
|
|
|
zig env
|
|
|
|
|
2020-11-19 12:27:45 -08:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-04-19 15:18:01 -07:00
|
|
|
|
2020-05-20 14:06:33 -07:00
|
|
|
- name: build
|
2020-04-19 15:18:01 -07:00
|
|
|
run: |
|
|
|
|
zig build
|
|
|
|
|
2020-05-20 14:06:33 -07:00
|
|
|
- name: test
|
2020-04-19 15:18:01 -07:00
|
|
|
run: |
|
|
|
|
zig build test
|
2020-05-20 14:06:33 -07:00
|
|
|
|
2021-10-11 03:44:46 -07:00
|
|
|
- name: xwayland build
|
2020-07-17 12:57:51 -07:00
|
|
|
run: |
|
2021-10-11 03:44:46 -07:00
|
|
|
zig build -Dxwayland
|
2020-07-17 12:57:51 -07:00
|
|
|
|
2021-10-11 03:44:46 -07:00
|
|
|
- name: xwayland test
|
2020-07-17 12:57:51 -07:00
|
|
|
run: |
|
2021-10-11 03:44:46 -07:00
|
|
|
zig build -Dxwayland test
|
2020-07-17 12:57:51 -07:00
|
|
|
|
|
|
|
- name: fmt
|
2020-05-20 14:06:33 -07:00
|
|
|
run: |
|
2020-11-19 12:27:45 -08:00
|
|
|
zig fmt --check river/
|
|
|
|
zig fmt --check riverctl/
|
|
|
|
zig fmt --check rivertile/
|
2020-12-05 13:53:50 -08:00
|
|
|
zig fmt --check build.zig
|