river/.github/workflows/ci_build.yml

39 lines
765 B
YAML
Raw Normal View History

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.
on:
push:
branches:
- master
pull_request:
branches:
- master
2020-05-24 10:22:42 -07:00
name: Archliunx
2020-04-19 15:18:01 -07:00
jobs:
build:
2020-05-24 10:22:42 -07:00
name: Archliunx
2020-04-19 15:18:01 -07:00
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Install Dependencies
run: |
pacman -Syu --noconfirm zig wayland-protocols wlroots pkgconf
- 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
- name: zig fmt
run: |
2020-06-01 07:20:48 -07:00
find . -path ./zig-cache -prune -o -name "*.zig" -exec zig fmt --check {} ";"