3bc799811f
arch is taking too long to get wlroots 0.11.0 and I already updated it for void.
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
# Build river and run the test suite every time a commit is pushed to master or
|
|
# a pull request is opened against master.
|
|
|
|
on: [push, pull_request]
|
|
|
|
name: voidlinux
|
|
|
|
jobs:
|
|
default_build:
|
|
name: default build
|
|
runs-on: ubuntu-latest
|
|
container: voidlinux/voidlinux:latest
|
|
|
|
steps:
|
|
- name: Install Dependencies
|
|
run: |
|
|
xbps-install -S
|
|
xbps-install -uy xbps
|
|
xbps-install -uy
|
|
xbps-install -uy zig wayland-devel wayland-protocols wlroots-devel \
|
|
libxkbcommon-devel pixman-devel pkgconf scdoc
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@master
|
|
|
|
- name: build
|
|
run: |
|
|
zig build
|
|
|
|
- name: test
|
|
run: |
|
|
zig build test
|
|
|
|
xwayland_build:
|
|
name: xwayland build
|
|
runs-on: ubuntu-latest
|
|
container: voidlinux/voidlinux:latest
|
|
|
|
steps:
|
|
- name: install deps
|
|
run: |
|
|
xbps-install -S
|
|
xbps-install -uy xbps
|
|
xbps-install -uy
|
|
xbps-install -uy zig wayland-devel wayland-protocols wlroots-devel \
|
|
libxkbcommon-devel pixman-devel pkgconf scdoc
|
|
|
|
- name: checkout
|
|
uses: actions/checkout@master
|
|
|
|
- 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
|
|
xbps-install -uy
|
|
xbps-install -uy zig
|
|
|
|
- name: checkout
|
|
uses: actions/checkout@master
|
|
|
|
- name: fmt
|
|
run: |
|
|
find . -path ./zig-cache -prune -o -name "*.zig" -exec zig fmt --check {} ";"
|