From 67d7d75f4d42c76be68ab4ef4ff4ea4c963a9cca Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 2 Aug 2024 13:18:23 +0200 Subject: [PATCH] build: add install step to doc CI build We had some fallouts which were happened at the install step when the documentation was build. Let's add this step, so we catch those errors in future. Signed-off-by: Daniel Wagner --- scripts/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index f820ade5..c4849e70 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -115,6 +115,7 @@ config_meson_docs() { CC="${CC}" "${MESON}" setup \ -Ddocs=all \ -Ddocs-build=true \ + --prefix=/tmp/usr \ "${BUILDDIR}" } @@ -198,6 +199,11 @@ test_muon() { ninja="${SAMU}" "${MUON}" -C "${BUILDDIR}" test } +install_meson_docs() { + "${MESON}" install \ + -C "${BUILDDIR}" +} + if [[ "${BUILDTOOL}" == "muon" ]]; then SAMU="$(which samu 2> /dev/null)" || true if [[ -z "${SAMU}" ]]; then @@ -220,3 +226,4 @@ rm -rf "${BUILDDIR}" config_"${BUILDTOOL}"_"${CONFIG}" fn_exists "build_${BUILDTOOL}_${CONFIG}" && "build_${BUILDTOOL}_${CONFIG}" || build_"${BUILDTOOL}" fn_exists "test_${BUILDTOOL}_${CONFIG}" && "test_${BUILDTOOL}_${CONFIG}" || test_"${BUILDTOOL}" +fn_exists "install_${BUILDTOOL}_${CONFIG}" && "install_${BUILDTOOL}_${CONFIG}" || true;