river/.github/workflows/ci_build.yml

44 lines
931 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.
#
# TODO: figure out why this didn't work on alpine
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Archliunx CI
jobs:
build:
name: Archliunx CI
runs-on: ubuntu-latest
#container: alpine:edge
container: archlinux:latest
steps:
- name: Install Dependencies
run: |
#apk add --no-cache wlroots-dev
#apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing zig
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: |
zig fmt --check src/**/*.zig