1
0
Fork 0

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:
Jonas Ådahl 2024-06-15 22:13:04 +02:00
parent 0064bf240e
commit d9c768da0e

View file

@ -370,6 +370,7 @@ check-code-style:
--warnlevel 2 --warnlevel 2
-Dbuildtype=debugoptimized -Dbuildtype=debugoptimized
-Db_coverage=true -Db_coverage=true
-Ddocs=true
$BASE_MESON_OPTIONS $BASE_MESON_OPTIONS
$EXTRA_MESON_OPTIONS $EXTRA_MESON_OPTIONS
- meson compile -C build - meson compile -C build
@ -732,11 +733,8 @@ reference:
- .mutter.fedora@x86_64 - .mutter.fedora@x86_64
stage: docs stage: docs
needs: needs:
- job: build-fedora-container@x86_64 - build-mutter@x86_64
artifacts: false
script: script:
- meson setup . build --werror -Ddocs=true -Dtests=false
- ninja -C build
- mkdir references - mkdir references
- cp -r doc/website/* ./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/ - mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta,mtk/mtk} references/