chore: add ci #14
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: Build | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| pacman -Syu --noconfirm | |
| pacman -S --noconfirm base-devel git perl meson ninja wayland-protocols \ | |
| cairo libevdev libinput pixman libxcb libxkbcommon linux-api-headers \ | |
| pango shaderc vulkan-headers xcb-util-wm xorg-xwayland | |
| - name: Create build user | |
| run: | | |
| useradd -m builder | |
| echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
| - name: Install wlroots | |
| run: | | |
| git clone --depth 1 https://aur.archlinux.org/wlroots-git.git | |
| cd wlroots | |
| chown -R builder:builder wlroots | |
| sudo -u builder makepkg -si | |
| - name: Build | |
| run: | | |
| cd arch/ | |
| chown -R builder:builder . | |
| sudo -u builder makepkg -s --noconfirm |