Skip to content

Commit

Permalink
Adds github action for building on Fedora 41. (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
phkaeser authored Feb 11, 2025
1 parent 5064744 commit 96a56c7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build-for-fedora41.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 96a56c7

Please sign in to comment.