Skip to content

Commit ab963b2

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

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 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,55 @@ 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+
53+
- name: Build wlroots
54+
run: |
55+
git clone --depth 1 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
56+
meson setup /tmp/wlroots /tmp/wlroots/build -Dexamples=false -Dtests=false
57+
ninja -C /tmp/wlroots/build
58+
meson install -C /tmp/wlroots/build
59+
rm -rf /tmp/wlroots
60+
61+
- name: Build
62+
run: |
63+
meson setup build
64+
ninja -C build
65+
66+
freebsd:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Build on FreeBSD
71+
uses: vmactions/freebsd-vm@v1
72+
with:
73+
release: "14.2"
74+
usesh: true
75+
prepare: |
76+
pkg install -y meson ninja pkgconf git wayland wayland-protocols \
77+
libxkbcommon pixman cairo libdrm libinput libevdev seatd \
78+
pango shaderc vulkan-headers xcb-util-wm xcb-util-errors \
79+
xcb-util-renderutil json-c lcms2 libepoll-shim libinotify \
80+
mesa-libs
81+
run: |
82+
git clone --depth 1 https://gitlab.freedesktop.org/wlroots/wlroots.git /tmp/wlroots
83+
meson setup /tmp/wlroots /tmp/wlroots/build -Dexamples=false -Dtests=false
84+
ninja -C /tmp/wlroots/build
85+
meson install -C /tmp/wlroots/build
86+
rm -rf /tmp/wlroots
87+
meson setup build
88+
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)