@@ -320,6 +320,54 @@ build-package:cros:
- build/build.ninja
- libcamera-upstream-9999.tbz2
+#
+# Build and package libcamera for the purpose of running tests on a real device.
+#
+
+build-deb-for-lc-compliance-testing:
+ extends:
+ - .fdo.distribution-image@debian
+ - .libcamera-ci.debian:13
+ - .libcamera-ci.scripts
+ stage: build
+ needs:
+ - job: container-debian:13
+ artifacts: false
+ variables:
+ BUILD_TYPE: debug
+ MESON_OPTIONS: >-
+ -D prefix=/usr
+ -D debug=true
+ -D optimization=2
+ -D force_fallback_for="['gtest']"
+ -D auto_features=disabled
+ -D udev=enabled
+ -D lc-compliance=enabled
+ -D pipelines=rkisp1
+ script:
+ - echo "0.0.0-ci-build-$CI_COMMIT_SHA-job-$CI_JOB_ID-pipeline-$CI_PIPELINE_ID-project-$CI_PROJECT_PATH" > .tarball-version
+ - $CI_PROJECT_DIR/.gitlab-ci/build-libcamera.sh
+ - meson install -C build --destdir install
+ - fpm -s dir -t deb
+ -C build/install
+ --architecture "$ARCH"
+ --package libcamera.deb
+ --name libcamera
+ --description "$CI_COMMIT_SHA (job $CI_JOB_ID, pipeline $CI_PIPELINE_ID, project $CI_PROJECT_PATH)"
+ --version "0.0.0"
+ artifacts:
+ when: always
+ expire_in: 1 week
+ paths:
+ - build/meson-logs/
+ - build/build.ninja
+ - "*.deb"
+ parallel:
+ matrix:
+ - ARCH:
+ - arm64
+
+
# ------------------------------------------------------------------------------
# Lint stage - Run checkstyle.py and check merge suitability
# ------------------------------------------------------------------------------
Add a job that builds a very specific deb package for testing purposes for the given architectures. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- gitlab-ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- 2.52.0