[libcamera-ci] [RFC PATCH v2 3/4] Add `build-package:debug` job
Barnabás Pőcze
barnabas.pocze at ideasonboard.com
Mon Dec 16 18:28:26 CET 2024
Add a new job named `build-package:debug`, whose purpose is to create
a build of libcamera with debugging additions (ASAN, UBSAN, STL checks),
and then to publish the resulting package as an artifact for other
jobs to use.
Signed-off-by: Barnabás Pőcze <barnabas.pocze at ideasonboard.com>
---
gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gitlab-ci.yml b/gitlab-ci.yml
index f679d6e..0a3eab3 100644
--- a/gitlab-ci.yml
+++ b/gitlab-ci.yml
@@ -305,6 +305,39 @@ build-package:cros:
reports:
dotenv: env
+build-package:debug:
+ extends:
+ - .fdo.distribution-image at debian
+ - .libcamera-ci.debian:12
+ - .libcamera-ci.scripts
+ stage: build
+ needs:
+ - job: container-debian:12
+ artifacts: false
+ script:
+ - $CI_PROJECT_DIR/.gitlab-ci/build-libcamera.sh
+ - $CI_PROJECT_DIR/.gitlab-ci/package-libcamera.sh
+ artifacts:
+ name: libcamera-debug-${ARCH}-${CI_COMMIT_SHA}
+ when: always
+ expire_in: 1 week
+ paths:
+ - build/meson-logs/
+ - libcamera-${CI_COMMIT_SHA}.tar.xz
+ variables:
+ BUILD_TYPE: debug
+ MESON_OPTIONS: >-
+ -D auto_features=disabled
+ -D test=false
+ -D v4l2=false
+ -D b_sanitize=address,undefined
+ -D cpp_debugstl=true
+ -D pipelines=[]
+ parallel:
+ matrix:
+ - ARCH: amd64
+
+
# ------------------------------------------------------------------------------
# Lint stage - Run checkstyle.py and check merge suitability
# ------------------------------------------------------------------------------
--
2.47.1
More information about the libcamera-devel
mailing list