Skip to content

Commit

Permalink
build: add install step to doc CI build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
igaw committed Aug 2, 2024
1 parent dd51fa8 commit 8137031
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ config_meson_docs() {
CC="${CC}" "${MESON}" setup \
-Ddocs=all \
-Ddocs-build=true \
--prefix=/tmp/usr \
"${BUILDDIR}"
}

Expand Down Expand Up @@ -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
Expand All @@ -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;

0 comments on commit 8137031

Please sign in to comment.