1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-14 17:53:25 -04:00

ci: use github actions for OpenBSD build

sr.ht CI broke.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-05-15 16:30:13 +01:00
parent 2328d3efd7
commit 4b04a53b83
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4
2 changed files with 21 additions and 23 deletions

View file

@ -1,23 +0,0 @@
image: openbsd/latest
packages:
- libev
- xcb
- meson
- pkgconf
- cmake
- uthash
- libconfig
- dbus
- pcre2
sources:
- https://github.com/yshui/picom
tasks:
- setup: |
cd picom
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" meson setup -Dunittest=true --werror build
- build: |
cd picom
ninja -C build
- unittest: |
cd picom
ninja -C build test

21
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: openbsd
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: cross-platform-actions/action@v0.24.0
with:
operating_system: openbsd
version: '7.5'
shell: bash
run: |
sudo pkg_add libev xcb meson pkgconf cmake uthash libconfig dbus pcre2
CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" meson setup -Dunittest=true --werror build
ninja -C build
ninja -C build test