mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 10:45:13 +01:00
Merge branch 'wip/pwithnall/release-infra-glib-2-82' into 'glib-2-82'
Backport !4432 and !4433 “ci: Add release component to automate tarball publishing” to glib-2-82 See merge request GNOME/glib!4434
This commit is contained in:
commit
899caabcda
@ -1,3 +1,9 @@
|
||||
include:
|
||||
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
|
||||
inputs:
|
||||
dist-job-name: "dist-job"
|
||||
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
|
||||
|
||||
stages:
|
||||
- style-check
|
||||
- build
|
||||
@ -19,6 +25,8 @@ variables:
|
||||
MESON_TEST_TIMEOUT_MULTIPLIER: 4
|
||||
G_MESSAGES_DEBUG: all
|
||||
MESON_COMMON_OPTIONS: "--buildtype debug --wrap-mode=nodownload --fatal-meson-warnings"
|
||||
# expected naming scheme for the release-service job
|
||||
TARBALL_ARTIFACT_PATH: "_build/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
|
||||
|
||||
# Default CI job setup; contrast with `.only-origin`.
|
||||
#
|
||||
@ -840,25 +848,33 @@ pages:
|
||||
- public
|
||||
|
||||
dist-job:
|
||||
image: $FEDORA_IMAGE
|
||||
extends:
|
||||
- .build-linux
|
||||
- .with-git
|
||||
image: "${FEDORA_IMAGE}"
|
||||
stage: build
|
||||
needs: []
|
||||
before_script:
|
||||
- !reference [".build-linux", "before_script"]
|
||||
- !reference [".with-git", "before_script"]
|
||||
only:
|
||||
- schedules
|
||||
- tags
|
||||
script:
|
||||
# Ignore extra git security checks as we don't care in CI.
|
||||
- git config --global --add safe.directory "${PWD}"
|
||||
- git submodule update --init
|
||||
- for m in $(git submodule foreach -q 'echo $path'); do git config --global --add safe.directory "${PWD}/${m}"; done
|
||||
- meson subprojects download
|
||||
- meson setup ${MESON_COMMON_OPTIONS} --buildtype release -Ddocumentation=true -Dman-pages=enabled _build
|
||||
- meson setup ${MESON_COMMON_OPTIONS}
|
||||
--buildtype release
|
||||
-Ddocumentation=true
|
||||
-Dintrospection=enabled
|
||||
-Dman-pages=enabled
|
||||
_build
|
||||
- meson dist -C _build
|
||||
# Compile again to build the docs
|
||||
- meson compile -C _build
|
||||
- tar -c -J -f "glib-docs-$CI_COMMIT_TAG.tar.xz" -C _build/docs/reference/glib glib-2.0
|
||||
- tar -c -J -f "gmodule-docs-$CI_COMMIT_TAG.tar.xz" -C _build/docs/reference/gmodule gmodule-2.0
|
||||
- tar -c -J -f "gobject-docs-$CI_COMMIT_TAG.tar.xz" -C _build/docs/reference/gobject gobject-2.0
|
||||
- tar -c -J -f "gio-docs-$CI_COMMIT_TAG.tar.xz" -C _build/docs/reference/gio gio-2.0
|
||||
- tar -c -J -f "girepository-docs-$CI_COMMIT_TAG.tar.xz" -C _build/docs/reference/girepository girepository-2.0
|
||||
- tar -c -J -f "_build/glib-docs-${CI_COMMIT_TAG}.tar.xz" -C _build/docs/reference/glib glib-2.0
|
||||
- tar -c -J -f "_build/gmodule-docs-${CI_COMMIT_TAG}.tar.xz" -C _build/docs/reference/gmodule gmodule-2.0
|
||||
- tar -c -J -f "_build/gobject-docs-${CI_COMMIT_TAG}.tar.xz" -C _build/docs/reference/gobject gobject-2.0
|
||||
- tar -c -J -f "_build/gio-docs-${CI_COMMIT_TAG}.tar.xz" -C _build/docs/reference/gio gio-2.0
|
||||
- tar -c -J -f "_build/girepository-docs-${CI_COMMIT_TAG}.tar.xz" -C _build/docs/reference/girepository girepository-2.0
|
||||
artifacts:
|
||||
paths:
|
||||
- "${CI_PROJECT_DIR}/_build/glib-docs-$CI_COMMIT_TAG.tar.xz"
|
||||
|
Loading…
x
Reference in New Issue
Block a user