Skip to content

Commit 8252d6d

Browse files
committed
feat: add alpine and freebsd CI
1 parent 1893218 commit 8252d6d

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build
33
on: [push]
44

55
jobs:
6-
build:
6+
arch:
77
runs-on: ubuntu-latest
88
container:
99
image: archlinux:latest
@@ -34,4 +34,56 @@ jobs:
3434
run: |
3535
cd arch/
3636
chown -R builder:builder .
37-
sudo -u builder makepkg -s --noconfirm
37+
sudo -u builder makepkg -si --noconfirm
38+
39+
alpine:
40+
runs-on: ubuntu-latest
41+
container:
42+
image: alpine:edge
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Install build dependencies
46+
run: |
47+
apk add --no-cache git gcc musl-dev cairo-dev eudev-dev gdk-pixbuf-dev \
48+
libdisplay-info-dev libevdev-dev libinput-dev libseat-dev libxcb-dev \
49+
libxkbcommon-dev mesa-dev meson pango-dev pcre2-dev pixman-dev \
50+
wayland-dev wayland-protocols xcb-util-image-dev xcb-util-wm-dev \
51+
xwayland-dev hwdata-dev shaderc-dev vulkan-headers vulkan-loader-dev \
52+
xcb-util-cursor xcb-util-icccm
53+
54+
- name: Build wlroots
55+
run: |
56+
git clone --depth 1 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
57+
meson setup /tmp/wlroots /tmp/wlroots/build -Dexamples=false -Dtests=false
58+
ninja -C /tmp/wlroots/build
59+
meson install -C /tmp/wlroots/build
60+
rm -rf /tmp/wlroots
61+
62+
- name: Build
63+
run: |
64+
meson setup build
65+
ninja -C build
66+
67+
freebsd:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v4
71+
- name: Build on FreeBSD
72+
uses: vmactions/freebsd-vm@v1
73+
with:
74+
release: "14.2"
75+
usesh: true
76+
prepare: |
77+
pkg install -y meson ninja pkgconf git wayland wayland-protocols \
78+
libxkbcommon pixman cairo libdrm libinput libevdev seatd \
79+
pango shaderc vulkan-headers xcb-util-wm xcb-util-errors \
80+
xcb-util-renderutil json-c lcms2 libepoll-shim libinotify \
81+
mesa-libs
82+
run: |
83+
git clone --depth 1 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
84+
meson setup /tmp/wlroots /tmp/wlroots/build -Dexamples=false -Dtests=false
85+
ninja -C /tmp/wlroots/build
86+
meson install -C /tmp/wlroots/build
87+
rm -rf /tmp/wlroots
88+
meson setup build
89+
ninja -C build

src/ipc_subscribe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdlib.h>
66
#include <sys/stat.h>
77
#include <unistd.h>
8+
#include <string.h>
89

910
static subscriber_t *make_subscriber(int client_fd, char *fifo_path, subscriber_mask_t mask,
1011
int count) {

0 commit comments

Comments
 (0)