ci: generate and publish HTML documentation

This commit is contained in:
Simon Ser 2023-06-30 16:34:17 +02:00
parent a64e1a58b1
commit 714a0264a6
2 changed files with 19 additions and 0 deletions

View file

@ -20,8 +20,13 @@ packages:
- xwayland-dev - xwayland-dev
- libseat-dev - libseat-dev
- hwdata-dev - hwdata-dev
# for docs
- go
- zip
sources: sources:
- https://gitlab.freedesktop.org/wlroots/wlroots.git - https://gitlab.freedesktop.org/wlroots/wlroots.git
artifacts:
- public.zip
tasks: tasks:
- setup: | - setup: |
cd wlroots cd wlroots
@ -37,3 +42,16 @@ tasks:
- tinywl: | - tinywl: |
cd wlroots/tinywl cd wlroots/tinywl
make make
- docs: |
go install 'git.sr.ht/~emersion/gyosu@latest'
include_dir="$(echo /usr/local/include/wlroots-*)"
~/go/bin/gyosu \
-DWLR_USE_UNSTABLE \
$(pkg-config --cflags-only-I $(basename "$include_dir")) \
-Iwlroots/build/protocol/ \
-fexported-symbols='wlr_*' -fexported-symbols='WLR_*' \
-ffile-prefix-map="$include_dir/"= \
-fsite-name=wlroots \
-o public \
"$include_dir/wlr/"
zip -r ~/public.zip public/

View file

@ -1,6 +1,7 @@
include: https://git.sr.ht/~emersion/dalligi/blob/master/templates/multi.yml include: https://git.sr.ht/~emersion/dalligi/blob/master/templates/multi.yml
alpine: alpine:
extends: .dalligi extends: .dalligi
pages: true
archlinux: archlinux:
extends: .dalligi extends: .dalligi
freebsd: freebsd: