aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci_build_xwayland.yml
blob: 6442f57177b23399da6bd5f60c191090b17c9004 (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
# Build river and run the test suite with xwayland enabled 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: Archliunx + Xwayland

jobs:
  build:
    name: Archliunx + Xwayland
    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

      - name: build
        run: |
          zig build -Dxwayland=true

      - name: test
        run: |
          zig build -Dxwayland=true test

      - name: zig fmt
        run: |
          find . -path ./zig-cache -prune -o -name "*.zig" -exec zig fmt --check {} ";"