From 187d41e2e41c24a7d08fe63cde8907a273dd9497 Mon Sep 17 00:00:00 2001 From: Philipp Kaeser Date: Sat, 25 Jan 2025 09:31:25 +0000 Subject: [PATCH] Adds github action for building on Fedora 41. --- .github/workflows/build-for-fedora41.yml | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/build-for-fedora41.yml diff --git a/.github/workflows/build-for-fedora41.yml b/.github/workflows/build-for-fedora41.yml new file mode 100644 index 0000000..4e1e61e --- /dev/null +++ b/.github/workflows/build-for-fedora41.yml @@ -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