-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (49 loc) · 1.26 KB
/
build-for-fedora41.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
name: Build for Fedora Linux 41
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_matrix:
strategy:
matrix:
compiler: [ "gcc", "clang" ]
runs-on: ubuntu-latest
container:
image: fedora:41
steps:
- name: Install package dependencies.
run: |
dnf -y upgrade
dnf -y install \
bison \
clang \
cmake \
flex \
gcc \
git \
cairo-devel \
ncurses-devel \
wlroots-devel \
pkg-config \
plantuml \
wayland-protocols-devel \
xwayland-run
- name: Checkout code, including git submodules.
uses: actions/checkout@v3
with:
# Not using 'recursive' prevents fetching extra submodules below
# dependencies/. These are only needed to build wlroots from source.
submodules: true
- name: Configure wlmaker through CMake.
run: |
export CC="${{ matrix.compiler }}"
cmake -B build/ -Dconfig_WERROR=ON
- name: Build wlmaker.
run: |
export CC="${{ matrix.compiler }}"
cmake --build build/
- name: Run all tests.
run: |
ctest --test-dir build/ --build-run-dir build/ -V