chore: add ci #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CC: gcc | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq \ | |
| meson ninja-build \ | |
| libwayland-dev wayland-protocols \ | |
| libxkbcommon-dev \ | |
| libinput-dev \ | |
| libpixman-1-dev \ | |
| libxcb-xinput-dev libxcb-icccm4-dev \ | |
| libegl1-mesa-dev libgles2-mesa-dev \ | |
| libcairo2-dev libpango1.0-dev \ | |
| libvulkan-dev shaderc \ | |
| libseat-dev \ | |
| libdrm-dev libgbm-dev \ | |
| hwdata \ | |
| libdisplay-info-dev \ | |
| libliftoff-dev | |
| - name: Build and install wlroots | |
| run: | | |
| git clone --depth=1 --branch 0.21 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots | |
| meson setup /tmp/wlroots/build /tmp/wlroots \ | |
| -Dexamples=false -Drenderers=gles2,vulkan | |
| ninja -C /tmp/wlroots/build | |
| sudo ninja -C /tmp/wlroots/build install | |
| sudo ldconfig | |
| - name: Setup | |
| run: meson setup build | |
| - name: Build compositor | |
| run: ninja -C build |