swindle/.forgejo/workflows/ci.yml

32 lines
820 B
YAML
Raw Permalink Normal View History

2026-09-04 23:20:26 +08:00
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: docker
container:
2026-09-29 23:18:37 +08:00
image: alpine:latest
2026-09-04 23:20:26 +08:00
steps:
- name: Install build dependencies
run: |
2026-09-29 23:18:37 +08:00
apk update && apk add --no-cache \
build-base \
2026-09-04 23:20:26 +08:00
git \
meson \
ninja \
pkgconf \
2026-09-29 23:18:37 +08:00
wayland-dev \
2026-09-04 23:20:26 +08:00
wayland-protocols \
2026-09-29 23:19:07 +08:00
wlroots0.20-dev \
2026-09-29 23:18:37 +08:00
libxkbcommon-dev \
libinput-dev \
lua5.4-dev \
xcb-util-wm-dev
2026-09-04 23:20:26 +08:00
- name: Checkout
run: |
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
"https://scm.hgdump.net/${GITHUB_REPOSITORY}.git" .
- name: Configure
run: meson setup build -Dxwayland=true
- name: Compile
run: meson compile -C build