[pangomm] CI: Use artifacts to transfer data between stages, part 2
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pangomm] CI: Use artifacts to transfer data between stages, part 2
- Date: Fri, 18 Mar 2022 16:24:58 +0000 (UTC)
commit 5a30e66c6187f150f24c0f34829b47fb7214c9da
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Mar 18 17:23:23 2022 +0100
CI: Use artifacts to transfer data between stages, part 2
.gitlab-ci.yml | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7f272e1..d9a2737 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,9 +47,12 @@ build_deps:
extends: .build_default
stage: deps
variables:
- DEPENDENCIES: $MESON_GCC_DEPS
+ DEPENDENCIES: $MESON_GCC_DEPS docbook5-xml docbook-xsl
script:
# Build and cache dependencies that can't be installed with apt.
+ # Install to ./installdir, with the contents of the installed files
+ # (notably .pc files) suited for installation to /usr.
+ - export DESTDIR=`pwd`/installdir
# Build libsigc++3
- if test ! -d libsigc; then
- git clone --branch 3.2.0 --depth 1 https://github.com/libsigcplusplus/libsigcplusplus.git libsigc
@@ -57,9 +60,10 @@ build_deps:
- mkdir _build && cd _build
- meson --prefix=/usr --libdir=lib -Dvalidation=false -Dbuild-examples=false -Dbuildtype=release
- meson compile
- - meson install
- cd ../..
- fi
+ - ninja -C libsigc/_build install
+ - cp -r installdir/usr /
# Build glibmm-2.68
- if test ! -d glibmm; then
- git clone --branch 2.70.0 --depth 1 https://gitlab.gnome.org/GNOME/glibmm.git glibmm
@@ -69,6 +73,7 @@ build_deps:
- meson compile
- cd ../..
- fi
+ - ninja -C glibmm/_build install
# Build cairomm-1.16
- if test ! -d cairomm; then
- git clone --branch 1.16.1 --depth 1 https://gitlab.freedesktop.org/cairo/cairomm.git cairomm
@@ -78,6 +83,7 @@ build_deps:
- meson compile
- cd ../..
- fi
+ - ninja -C cairomm/_build install
cache:
key: build-deps
paths:
@@ -85,14 +91,12 @@ build_deps:
- glibmm/
- cairomm/
policy: pull-push
- # Transfer the built dependencies to later stages as artifacts.
- # The cache does not always work.
+ # Transfer the installed part of the built dependencies to later stages
+ # as artifacts. The cache does not always work.
# https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/775
artifacts:
paths:
- - libsigc/
- - glibmm/
- - cairomm/
+ - installdir/
expire_in: 1 day
release_gcc_build:
@@ -101,9 +105,7 @@ release_gcc_build:
variables:
DEPENDENCIES: $MESON_GCC_DEPS
script:
- - ninja -C libsigc/_build install
- - ninja -C glibmm/_build install
- - ninja -C cairomm/_build install
+ - cp -r installdir/usr /
- mkdir _build && cd _build
# -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
- meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
@@ -124,9 +126,7 @@ release_clang_build:
variables:
DEPENDENCIES: $MESON_GCC_DEPS clang
script:
- - ninja -C libsigc/_build install
- - ninja -C glibmm/_build install
- - ninja -C cairomm/_build install
+ - cp -r installdir/usr /
- mkdir _build && cd _build
# -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
- CC=clang CXX=clang++ meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]