mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-15 22:05:35 -05:00
ci: Add release builds
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
705154a09d
commit
71ff5fe0af
1 changed files with 29 additions and 1 deletions
|
|
@ -67,6 +67,7 @@ stages:
|
|||
- "Merge request checks"
|
||||
- "Base container"
|
||||
- "Build and test"
|
||||
- "Other build configurations"
|
||||
|
||||
.ci-rules:
|
||||
rules:
|
||||
|
|
@ -155,6 +156,8 @@ armv7-debian-container_prep:
|
|||
|
||||
# Core build environment.
|
||||
.build-env:
|
||||
variables:
|
||||
MESON_BUILD_TYPE: "-Dbuildtype=debug -Doptimization=0 -Db_sanitize=address,undefined"
|
||||
before_script:
|
||||
- export BUILD_ID="wayland-$CI_JOB_NAME-$CI_COMMIT_SHA-$CI_JOB_ID"
|
||||
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
||||
|
|
@ -162,6 +165,13 @@ armv7-debian-container_prep:
|
|||
- mkdir "$BUILDDIR" "$PREFIX"
|
||||
|
||||
|
||||
# Build variants to be stacked on as required.
|
||||
.build-release:
|
||||
stage: "Other build configurations"
|
||||
variables:
|
||||
MESON_BUILD_TYPE: "-Dbuildtype=release"
|
||||
|
||||
|
||||
# OS/architecture-specific variants
|
||||
.build-env-debian-x86_64:
|
||||
extends:
|
||||
|
|
@ -209,7 +219,7 @@ armv7-debian-container_prep:
|
|||
stage: "Build and test"
|
||||
script:
|
||||
- cd "$BUILDDIR"
|
||||
- meson --prefix="$PREFIX" -Db_sanitize=address,undefined -Dicon_directory=/usr/share/X11/icons ..
|
||||
- meson --prefix="$PREFIX" -Dicon_directory=/usr/share/X11/icons ${MESON_BUILD_TYPE} ..
|
||||
- ninja -k0 test
|
||||
- ninja clean
|
||||
artifacts:
|
||||
|
|
@ -226,12 +236,30 @@ x86_64-debian-build:
|
|||
- .build-env-debian-x86_64
|
||||
- .do-build
|
||||
|
||||
x86_64-release-debian-build:
|
||||
extends:
|
||||
- .build-env-debian-x86_64
|
||||
- .do-build
|
||||
- .build-release
|
||||
|
||||
aarch64-debian-build:
|
||||
extends:
|
||||
- .build-env-debian-aarch64
|
||||
- .do-build
|
||||
|
||||
aarch64-release-debian-build:
|
||||
extends:
|
||||
- .build-env-debian-aarch64
|
||||
- .do-build
|
||||
- .build-release
|
||||
|
||||
armv7-debian-build:
|
||||
extends:
|
||||
- .build-env-debian-armv7
|
||||
- .do-build
|
||||
|
||||
armv7-release-debian-build:
|
||||
extends:
|
||||
- .build-env-debian-armv7
|
||||
- .do-build
|
||||
- .build-release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue