Build the documentation in the CI build to catch formatting issues in
the submissions.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
--- /dev/null
+---
+name: docs
+
+on:
+ push:
+ branches: [master]
+ paths:
+ - Documentation/**
+ pull_request:
+ branches: [master]
+ paths:
+ - Documentation/**
+
+ workflow_dispatch:
+
+jobs:
+ build-docs:
+ name: build documentation
+ runs-on: ubuntu-latest
+ container:
+ image: ghcr.io/igaw/linux-nvme/debian:latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: build
+ run: |
+ scripts/build.sh docs
echo " coverage build coverage report"
echo " appimage build AppImage target"
echo " distro build libnvme and nvme-cli separately"
+ echo " docs build documentation"
echo ""
echo "configs with muon:"
echo " [default] minimal static build"
"${BUILDDIR}"
}
+config_meson_docs() {
+ CC="${CC}" "${MESON}" setup \
+ -Ddocs=all \
+ -Ddocs-build=true \
+ --force-fallback-for=libnvme \
+ -Dlibnvme:werror=false \
+ "${BUILDDIR}"
+}
+
build_meson() {
"${MESON}" compile \
-C "${BUILDDIR}"