-
Notifications
You must be signed in to change notification settings - Fork 125
55 lines (52 loc) · 1.41 KB
/
linux.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Set permissions at the job level.
permissions: {}
jobs:
linux:
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
matrix:
compiler: [clang, gcc]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade meson PyYAML
sudo apt update
sudo apt install -y \
doxygen libxcb-xkb-dev valgrind ninja-build \
libwayland-dev wayland-protocols bison graphviz
- name: Setup
run: |
# -gdwarf-4 - see https://github.com/llvm/llvm-project/issues/56550.
CFLAGS='-gdwarf-4' meson setup build
env:
CC: ${{ matrix.compiler }}
- name: Build
run: |
meson compile -C build
- name: Test
run:
meson test -C build --print-errorlogs --no-suite python-tests
- name: Test with valgrind
run:
meson test -C build --print-errorlogs --setup=valgrind --no-suite python-tests
- name: Upload test logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: test logs
path: |
build/meson-logs/