-
Notifications
You must be signed in to change notification settings - Fork 8
96 lines (87 loc) · 2.78 KB
/
build-for-bookworm-wlroots-018.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build for Linux (Bookworm, libwlroots-0.18)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
INSTALL_PATH: "${HOME}/wlmaker"
INSTALL_LIBRARY_PATH: "${HOME}/wlmaker/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
INSTALL_PKGCONFIG_PATH: "${HOME}/wlmaker/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/pkgconfig/:${HOME}/wlmaker/share/pkgconfig/"
jobs:
build_matrix:
strategy:
matrix:
compiler: [ "gcc" ]
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Install package dependencies.
run: |
apt-get update
apt-get install -y \
bison \
clang \
cmake \
flex \
foot \
git \
glslang-dev \
glslang-tools \
gnustep-base-runtime \
graphviz \
libcairo2-dev \
libgbm-dev \
libinput-dev \
libncurses-dev \
libseat-dev \
libudev-dev \
libvulkan-dev \
libwayland-dev \
libxcb-composite0-dev \
libxcb-dri3-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-present-dev \
libxcb-render-util0-dev \
libxcb-res0-dev \
libxcb-xinput-dev \
libxkbcommon-dev \
libxml2-dev \
meson \
plantuml \
seatd \
wayland-protocols \
xmlto \
xsltproc \
xwayland
- name: Checkout code, including git submodules.
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure and build dependencies/.
run: |
export CC="${{ matrix.compiler }}"
export PKG_CONFIG_PATH="${{ env.INSTALL_PKGCONFIG_PATH }}"
export LD_LIBRARY_PATH="${{ env.INSTALL_LIBRARY_PATH }}"
export PATH="${PATH}:${{ env.INSTALL_PATH }}/bin"
cmake -DCMAKE_INSTALL_PREFIX:PATH=${{ env.INSTALL_PATH }} dependencies/ -B dependencies/build/
cmake --build dependencies/build
- name: Configure wlmaker through CMake.
run: |
export CC="${{ matrix.compiler }}"
export PKG_CONFIG_PATH="${{ env.INSTALL_PKGCONFIG_PATH }}"
export LD_LIBRARY_PATH="${{ env.INSTALL_LIBRARY_PATH }}"
export PATH="${PATH}:${{ env.INSTALL_PATH }}/bin"
cmake -DCMAKE_INSTALL_PREFIX:PATH=${{ env.INSTALL_PATH }} -B build/
- name: Build wlmaker.
run: |
export CC="${{ matrix.compiler }}"
export LD_LIBRARY_PATH="${{ env.INSTALL_LIBRARY_PATH }}"
export PATH="${PATH}:${{ env.INSTALL_PATH }}/bin"
cmake --build build/
- name: Run all tests.
run: |
export LD_LIBRARY_PATH="${{ env.INSTALL_LIBRARY_PATH }}"
ctest --test-dir build/ --build-run-dir build/ -V