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:
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
2020-07-17 12:57:51 -07:00
|
|
|
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
|
2020-04-19 15:18:01 -07:00
|
|
|
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
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: |
|
|
|
|
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
|
2020-05-20 14:06:33 -07:00
|
|
|
run: |
|
2020-06-01 07:20:48 -07:00
|
|
|
find . -path ./zig-cache -prune -o -name "*.zig" -exec zig fmt --check {} ";"
|