-
Notifications
You must be signed in to change notification settings - Fork 291
60 lines (58 loc) · 1.67 KB
/
ubuntu.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
56
57
58
59
60
name: Ubuntu build testing
on: [push, pull_request]
jobs:
build-test:
strategy:
matrix:
compiler: [clang, gcc]
os: [ubuntu-22.04, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Install prerequisites'
run: |
sudo apt-get update
sudo apt-get install -y \
appstream \
glslang-tools \
ninja-build \
python3-mako \
python3-setuptools \
python3-wheel \
mesa-common-dev \
libcmocka-dev \
libdbus-1-dev \
libglew-dev \
libglfw3-dev \
libwayland-dev \
libxnvctrl-dev \
libxkbcommon-dev
sudo pip3 install 'meson>=0.60'
- name: 'Install clang'
if: ${{ (matrix.compiler == 'clang') }}
run: |
sudo apt-get install -y clang
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"
- name: 'Install gcc'
if: ${{ (matrix.compiler == 'gcc') }}
run: |
sudo apt-get install -y gcc g++
echo "CC=gcc" >> "$GITHUB_ENV"
echo "CXX=g++" >> "$GITHUB_ENV"
- name: 'Configure'
run: meson setup ./builddir --prefix=/usr
-D include_doc=true
-D with_xnvctrl=enabled
-D with_x11=enabled
-D with_wayland=enabled
-D with_dbus=enabled
-D mangoapp=true
-D mangohudctl=true
-D mangoapp_layer=true
-D tests=enabled
- name: 'Build'
run: meson compile -C ./builddir || ninja -C ./builddir
- name: 'Install'
run: sudo meson install -C ./builddir