Commit 5d266e9bba8b11dbf604c1a74f536e61d3d4311d

Martin Gerhardy 2021-02-21T13:57:38

CI: added github actions

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..0152283
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,46 @@
+name: Build
+
+on: [push, pull_request]
+
+jobs:
+    mac:
+        runs-on: macos-latest
+        steps:
+        - uses: actions/checkout@v1
+
+        - name: Build
+          run: |
+            mkdir build
+            cd build
+            cmake ..
+            cmake --build .
+
+    linux:
+        runs-on: ubuntu-20.04
+        steps:
+        - uses: actions/checkout@v1
+
+        - name: Setup
+          run: |
+            sudo apt-get update
+            sudo apt-get install wayland-protocols pkg-config ninja-build
+
+        - name: Linux
+          run: |
+            mkdir build
+            cd build
+            cmake .. -GNinja
+            cmake --build .
+
+    windows:
+        runs-on: windows-latest
+
+        steps:
+        - uses: actions/checkout@v1
+
+        - name: Build
+          run: |
+            mkdir build
+            cd build
+            cmake ..
+            cmake --build .