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:
committed by
Marge Bot
parent
260ea43b01
commit
d6d2193792
@@ -35,6 +35,13 @@ variables:
|
||||
GIT_SUBMODULE_STRATEGY: normal
|
||||
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:
|
||||
stage: build
|
||||
artifacts:
|
||||
@@ -49,6 +56,7 @@ build:native:
|
||||
- $PKG_ONLY == "1"
|
||||
image: "${DEBIAN_IMAGE}"
|
||||
tags: []
|
||||
<<: *build_dep_before_script
|
||||
script:
|
||||
- 'echo "Build opts: ${BUILD_OPTS}"'
|
||||
- meson ${BUILD_OPTS} . _build
|
||||
@@ -64,6 +72,7 @@ build:tarball:
|
||||
- "${MESON_BUILD_DIR}/meson-dist"
|
||||
reports:
|
||||
dotenv: build.env
|
||||
<<: *build_dep_before_script
|
||||
script:
|
||||
- meson setup . "${MESON_BUILD_DIR}"
|
||||
- xvfb-run -s -noreset meson dist --include-subprojects -C "${MESON_BUILD_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user