summaryrefslogtreecommitdiff
path: root/.github/workflows/c-cpp.yml
blob: 131ed82556791667573ccc58951a477f9de6b9cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: C/C++ CI

on:
  push:
    branches: [ "master", "test" ]
  pull_request:
    branches: [ "master", "test" ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: install deps
      run: sudo apt install -y meson ninja-build libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libx11-xcb-dev libx11-dev libgbm-dev libevdev-dev libfmt-dev
    - name: configure
      run: meson setup -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
    - name: build
      run: ninja -v -C build