Skip to content

Commit ce9bf54

Browse files
committed
chore: add ci
1 parent fa0e031 commit ce9bf54

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: archlinux:latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install dependencies
13+
run: |
14+
pacman -Syu --noconfirm
15+
pacman -S --noconfirm base-devel git perl meson ninja wayland-protocols \
16+
cairo libevdev libinput libpixman-1 libudev libxcb libxkbcommon \
17+
linux-api-headers pango shaderc vulkan-headers xcb-util-wm xorg-xwayland
18+
19+
- name: Install wlroots
20+
run: |
21+
git clone --depth 1 https://gitlab.freedesktop.org/wlroots/wlroots.git
22+
cd wlroots
23+
meson setup build --prefix=/usr -Dexamples=false
24+
ninja -C build install
25+
26+
- name: Build
27+
run: |
28+
cd arch/
29+
30+
# makepkg requires non-root user
31+
useradd builder
32+
chown -R builder:builder .
33+
34+
sudo -u builder makepkg -s --noconfirm

0 commit comments

Comments
 (0)