ci: Ensure build dependencies get installed

This frees us from always having to update the container image
whenever build dependencies change.

Signed-off-by: Christian Glombek <c.glombek@cosa.systems>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/809>
This commit is contained in:
Evangelos Ribeiro Tzaras
2025-12-04 22:38:09 +01:00
committed by Marge Bot
parent 260ea43b01
commit d6d2193792

View File

@@ -35,6 +35,13 @@ variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
MESON_BUILD_DIR: "_build" MESON_BUILD_DIR: "_build"
.build_dep_before_script: &build_dep_before_script
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y build-dep .
build:native: build:native:
stage: build stage: build
artifacts: artifacts:
@@ -49,6 +56,7 @@ build:native:
- $PKG_ONLY == "1" - $PKG_ONLY == "1"
image: "${DEBIAN_IMAGE}" image: "${DEBIAN_IMAGE}"
tags: [] tags: []
<<: *build_dep_before_script
script: script:
- 'echo "Build opts: ${BUILD_OPTS}"' - 'echo "Build opts: ${BUILD_OPTS}"'
- meson ${BUILD_OPTS} . _build - meson ${BUILD_OPTS} . _build
@@ -64,6 +72,7 @@ build:tarball:
- "${MESON_BUILD_DIR}/meson-dist" - "${MESON_BUILD_DIR}/meson-dist"
reports: reports:
dotenv: build.env dotenv: build.env
<<: *build_dep_before_script
script: script:
- meson setup . "${MESON_BUILD_DIR}" - meson setup . "${MESON_BUILD_DIR}"
- xvfb-run -s -noreset meson dist --include-subprojects -C "${MESON_BUILD_DIR}" - xvfb-run -s -noreset meson dist --include-subprojects -C "${MESON_BUILD_DIR}"