Skip to content

Commit 7c65a8b

Browse files
committed
chore: add ci
1 parent fa0e031 commit 7c65a8b

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 libliftoff \
18+
lcms2 xcb-util-errors xcb-util-renderutil seatd vulkan-icd-loader \
19+
libdisplay-info
20+
21+
- name: Create build user
22+
run: |
23+
useradd -m builder
24+
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
25+
26+
- name: Install wlroots
27+
run: |
28+
git clone --depth 1 https://aur.archlinux.org/wlroots-git.git
29+
cd wlroots-git
30+
chown -R builder:builder .
31+
sudo -u builder makepkg -si --noconfirm
32+
33+
- name: Build
34+
run: |
35+
cd arch/
36+
chown -R builder:builder .
37+
sudo -u builder makepkg -s --noconfirm

0 commit comments

Comments
 (0)