summaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/linux.yml')
-rw-r--r--.github/workflows/linux.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..a578fc6
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,43 @@
+name: linux
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+# Set permissions at the job level.
+permissions: {}
+
+jobs:
+ linux:
+ runs-on: ubuntu-20.04
+ permissions:
+ contents: read
+ strategy:
+ matrix:
+ compiler: [clang, gcc]
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade meson
+ sudo apt install -y \
+ doxygen libxcb-xkb-dev valgrind ninja-build \
+ libwayland-dev wayland-protocols bison graphviz
+ - name: Setup
+ run: |
+ meson setup build
+ env:
+ CC: ${{ matrix.compiler }}
+ - name: Build
+ run: |
+ meson compile -C build
+ - name: Test
+ run:
+ meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests