summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-12-18 16:26:53 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-12-18 16:26:53 +0200
commit933658113ef7b5acd61c91d0729566e0c33d2bef (patch)
tree8aaad83bf8c18d81590eee27512be59cc1e7fe8d /.github/workflows
parentdbecbde2aa809b787c5d0babd4155c5e06580b65 (diff)
Add github workflows file
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/c-cpp.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
new file mode 100644
index 0000000..672267d
--- /dev/null
+++ b/.github/workflows/c-cpp.yml
@@ -0,0 +1,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 -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
+ - name: build
+ run: ninja -v -C build