Skip to content

Commit af25633

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

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 pixman libxcb libxkbcommon linux-api-headers \
17+
pango shaderc vulkan-headers xcb-util-wm xorg-xwayland
18+
19+
- name: Create build user
20+
run: |
21+
useradd -m builder
22+
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
23+
24+
- name: Install wlroots
25+
run: |
26+
git clone --depth 1 https://aur.archlinux.org/wlroots-git.git
27+
cd wlroots
28+
chown -R builder:builder wlroots
29+
sudo -u builder makepkg -si
30+
31+
- name: Build
32+
run: |
33+
cd arch/
34+
chown -R builder:builder .
35+
sudo -u builder makepkg -s --noconfirm

0 commit comments

Comments
 (0)