From d9c768da0e0a3c253d0b16c60100b7d0137e5da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 15 Jun 2024 22:13:04 +0200 Subject: [PATCH] ci: Don't build again for creating references Enable the docs in the main build, then inherit the artifacts. It should result in less CPU resources being used. GitLab doesn't support multiple artifacts per job, so we still have to download the whole build, as the build job can't hand out just the references, and it seems to be planned as a premium-only feature sadly: https://gitlab.com/gitlab-org/gitlab/-/issues/18744 Part-of: --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8ea1e2d7..b5fdd4650 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -370,6 +370,7 @@ check-code-style: --warnlevel 2 -Dbuildtype=debugoptimized -Db_coverage=true + -Ddocs=true $BASE_MESON_OPTIONS $EXTRA_MESON_OPTIONS - meson compile -C build @@ -732,11 +733,8 @@ reference: - .mutter.fedora@x86_64 stage: docs needs: - - job: build-fedora-container@x86_64 - artifacts: false + - build-mutter@x86_64 script: - - meson setup . build --werror -Ddocs=true -Dtests=false - - ninja -C build - mkdir references - cp -r doc/website/* ./references - mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta,mtk/mtk} references/