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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3816>
This commit is contained in:
parent
0064bf240e
commit
d9c768da0e
1 changed files with 2 additions and 4 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue