2020-04-19 15:18:01 -07:00
|
|
|
# Build river and run the test suite every time a commit is pushed to master or
|
|
|
|
# a pull request is opened against master.
|
|
|
|
|
2020-08-11 13:35:34 -07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-19 15:18:01 -07:00
|
|
|
|
2020-07-17 12:57:51 -07:00
|
|
|
name: voidlinux
|
2020-04-19 15:18:01 -07:00
|
|
|
|
|
|
|
jobs:
|
2020-07-17 12:57:51 -07:00
|
|
|
default_build:
|
|
|
|
name: default build
|
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
|
|
|
|
xbps-install -uy
|
2021-06-23 06:14:23 -07:00
|
|
|
# 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-06-23 06:14:23 -07:00
|
|
|
libinput-devel libxkbcommon-devel pixman-devel wayland-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 xorg-server-xwayland pkg-config meson git gcc \
|
|
|
|
zig pkgconf scdoc
|
|
|
|
|
|
|
|
git clone https://github.com/swaywm/wlroots.git
|
|
|
|
cd wlroots
|
|
|
|
git checkout 0.14.0
|
|
|
|
meson build --auto-features=enabled -Dexamples=false -Dwerror=false -Db_ndebug=false
|
|
|
|
ninja -C build install
|
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
|
|
|
|
2020-07-17 12:57:51 -07:00
|
|
|
xwayland_build:
|
|
|
|
name: xwayland build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: voidlinux/voidlinux:latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: install deps
|
|
|
|
run: |
|
2021-09-27 10:00:10 -07:00
|
|
|
xbps-install -Sy xbps
|
|
|
|
xbps-install -uy
|
2021-06-23 06:14:23 -07:00
|
|
|
# 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-06-23 06:14:23 -07:00
|
|
|
libinput-devel libxkbcommon-devel pixman-devel wayland-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 xorg-server-xwayland pkg-config meson git gcc \
|
|
|
|
zig pkgconf scdoc
|
|
|
|
|
|
|
|
git clone https://github.com/swaywm/wlroots.git
|
|
|
|
cd wlroots
|
|
|
|
git checkout 0.14.0
|
|
|
|
meson build --auto-features=enabled -Dexamples=false -Dwerror=false -Db_ndebug=false
|
|
|
|
ninja -C build install
|
2020-07-17 12:57:51 -07:00
|
|
|
- name: checkout
|
2020-11-19 12:27:45 -08:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-07-17 12:57:51 -07:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
zig build -Dxwayland=true
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
zig build -Dxwayland=true test
|
|
|
|
|
|
|
|
zig_fmt:
|
|
|
|
name: zig fmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: voidlinux/voidlinux:latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: install deps
|
|
|
|
run: |
|
|
|
|
xbps-install -S
|
|
|
|
xbps-install -uy xbps
|
2020-11-19 12:27:45 -08:00
|
|
|
xbps-install -uy zig git
|
2020-07-17 12:57:51 -07:00
|
|
|
|
|
|
|
- name: checkout
|
2020-11-19 12:27:45 -08:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
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/
|
|
|
|
zig fmt --check example/
|
2020-12-05 13:53:50 -08:00
|
|
|
zig fmt --check build.zig
|