aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci_build.yml
blob: beec6a3d9877f0c4fe38dc45f2b9fde41c660f41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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

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 {} ";"