2 - remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/ci-fairy.yml"
10 # Use the resulting binaries
14 # Branch to track for modules that have no ref specified in the manifest
15 GST_UPSTREAM_BRANCH: 'master'
16 ORC_UPSTREAM_BRANCH: 'master'
20 # These are the version tags for the docker images the CI runs against.
21 # If you are hacking on them or need a them to rebuild, its enough
22 # to change any part of the string of the image you want.
24 FEDORA_TAG: '2021-06-04.0'
25 CERBERO_TAG: '2020-10-22.0'
26 ANDROID_TAG: '2020-10-22.0'
27 MANIFEST_TAG: '2020-10-22.0'
28 TEST_MANIFEST_TAG: '2020-10-22.0'
29 INDENT_TAG: '2020-10-22.0'
30 WINDOWS_TAG: "2021-02-24.0"
32 GST_UPSTREAM_REPO: 'gstreamer/gst-ci'
34 FEDORA_AMD64_SUFFIX: 'amd64/fedora'
35 CERBERO_AMD64_SUFFIX: 'amd64/cerbero-fedora'
36 ANDROID_AMD64_SUFFIX: 'amd64/android-fedora'
37 MANIFEST_AMD64_SUFFIX: 'amd64/build-manifest'
38 TEST_MANIFEST_AMD64_SUFFIX: 'amd64/test-manifest'
39 INDENT_AMD64_SUFFIX: 'amd64/gst-indent'
40 WINDOWS_AMD64_SUFFIX: 'amd64/windows'
42 FEDORA_IMAGE: "$CI_REGISTRY_IMAGE/$FEDORA_AMD64_SUFFIX:$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
43 FEDORA_DOCS_IMAGE: "registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2020-07-03.0-master"
44 CERBERO_IMAGE: "$CI_REGISTRY_IMAGE/$CERBERO_AMD64_SUFFIX:$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
45 ANDROID_IMAGE: "$CI_REGISTRY_IMAGE/$ANDROID_AMD64_SUFFIX:$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
46 MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$MANIFEST_AMD64_SUFFIX:$MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
47 TEST_MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$TEST_MANIFEST_AMD64_SUFFIX:$TEST_MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
48 INDENT_IMAGE: "$CI_REGISTRY_IMAGE/$INDENT_AMD64_SUFFIX:$INDENT_TAG-$GST_UPSTREAM_BRANCH"
49 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
50 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
52 # Current windows image doesn't seem to be able to spawn procceses for reason,
53 # use a different image until this is debuged
54 # Running command 'c:/builds/alatiera/gst-ci/cerbero-build/build-tools/bin/meson --prefix=c:/builds/alatiera/gst-ci/cerbero-build/dist/msvc_x86_64 --libdir=lib -Ddebug=true --default-library=both -Doptimization=2 --backend=ninja --wrap-mode=nodownload -Db_vscrt=md --native-file c:/builds/alatiera/gst-ci/cerbero-build/sources/msvc_x86_64/gstreamer-1.0-1.19.0.1/_builddir/meson-native-file.txt -Dlibunwind=disabled -Ddbghelp=enabled -Dintrospection=disabled -Dexamples=disabled'
55 # failed to create process
56 CERBERO_WINDOWS_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v13-master'
58 # Can't use $CI_* variables since we use this template in all repos, not just gst-ci
59 CERBERO_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/cerbero_setup.sh"
60 WINDOWS_CONTAINER_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/docker/windows/container.ps1"
63 MESON_BUILDTYPE_ARGS: --default-library=both
65 -Dlibnice:tests=disabled
66 -Dlibnice:examples=disabled
67 -Dopenh264:tests=disabled
68 -Dpygobject:tests=false
80 -Dgstreamer:werror=true
81 -Dgst-plugins-base:werror=true
82 -Dgst-plugins-good:werror=true
83 -Dgst-plugins-ugly:werror=true
84 -Dgst-plugins-bad:werror=true
85 -Dgst-rtsp-server:werror=true
86 -Dgst-libav:werror=true
87 -Dgst-examples:werror=true
88 -Dgst-editing-services:werror=true
89 -Dgst-docs:werror=true
91 -Dgst-devtools:werror=true
92 -Dgst-python:werror=true
93 -Dgstreamer-vaapi:werror=true
94 -Dgstreamer-sharp:werror=true
96 DEFAULT_CERBERO_ARGS: >
102 - if: $CI_MERGE_REQUEST_IID
103 # don't create a pipeline if its a commit pipeline, on a branch and that branch has
104 # open merge requests (bc we will get a MR build instead)
105 - if: $CI_OPEN_MERGE_REQUESTS
108 - if: $CI_COMMIT_BRANCH
113 # This can be used to configure global behaviour our our jobs.
119 - 'runner_system_failure'
120 - 'stuck_or_timeout_failure'
121 - 'scheduler_failure'
126 # Script to check if a docker image exists in the upstream registry
127 # and if so copy it to the forked registry so we can use it
129 # This is copied/adapted from citemplates/templates/fedora.yml
130 # https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
131 .check_image: &check_image_exists |
132 # if-not-exists steps
135 if [[ -z "$GST_FORCE_REBUILD" ]]
137 # disable exit on failure
140 # check if our image is already in the current registry
141 # we store the sha of the digest and the layers
142 skopeo inspect docker://$LOCAL_IMAGE | jq '[.Digest, .Layers]' > local_sha
144 # check if our image is already in our gst-ci registry fork
145 skopeo inspect docker://$LOCAL_GST_CI_IMAGE | jq '[.Digest, .Layers]' > local_gst_ci_sha
147 # check if our image is already in the upstream registry
148 if [[ -z "$GST_UPSTREAM_REPO" ]]
150 echo "WARNING! Variable \$GST_UPSTREAM_REPO is undefined, cannot check for images"
152 skopeo inspect docker://$GST_UPSTREAM_IMAGE | jq '[.Digest, .Layers]' > upstream_sha
155 # reenable exit on failure
158 # if the upstream repo has an image, ensure we use the same
159 if [ -s upstream_sha ]
162 echo "Checking if $LOCAL_IMAGE is up to date"
163 # ensure we use the same image from upstream
164 diff upstream_sha local_sha && exit 0 || true
166 echo "Copying image from gstreamer/gst-ci to local registry"
167 # copy the original image into the current project registry namespace
168 # we do 2 attempts with skopeo copy at most
169 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
170 docker://$GST_UPSTREAM_IMAGE \
171 docker://$LOCAL_IMAGE || \
172 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
173 docker://$GST_UPSTREAM_IMAGE \
174 docker://$LOCAL_IMAGE
181 # if the local ci fork repo has an image, ensure we use the same
182 if [ -s local_gst_ci_sha ]
184 echo "Checking if $LOCAL_GST_CI_IMAGE is up to date"
185 # ensure we use the same image from upstream
186 diff local_gst_ci_sha local_sha && exit 0 || true
188 echo "Copying image from $CI_PROJECT_NAMESPACE/gst-ci to local registry"
189 # copy the original image into the current project registry namespace
190 # we do 2 attempts with skopeo copy at most
191 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
192 docker://$LOCAL_GST_CI_IMAGE \
193 docker://$LOCAL_IMAGE || \
194 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
195 docker://$LOCAL_GST_CI_IMAGE \
196 docker://$LOCAL_IMAGE
201 # if we have a local image but none in the upstream repo, use our
204 echo "Using $LOCAL_IMAGE"
210 # Build docker images from Dockerfiles
212 # This is copied/adapted from citemplates/templates/fedora.yml
213 # https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
215 # CITemplates builds uses buildah run/commit workflow to build the images which doesn't
216 # fit us atm and our images need further adjustment to make use of it. Porting to
217 # ci-templates is the next step though.
219 # All the documentation from citemplates should be applicable here, so please refer there
221 image: "$CI_REGISTRY/freedesktop/ci-templates/buildah:2020-07-20.1"
223 STORAGE_DRIVER: 'vfs'
224 BUILDAH_FORMAT: 'docker'
225 BUILDAH_ISOLATION: 'chroot'
229 - export LOCAL_IMAGE="$CI_REGISTRY_IMAGE/$REPO_SUFFIX:$TAG"
230 - export LOCAL_GST_CI_IMAGE="$CI_REGISTRY/$CI_PROJECT_NAMESPACE/gst-ci/$REPO_SUFFIX:$TAG"
231 - export GST_UPSTREAM_IMAGE="$CI_REGISTRY/$GST_UPSTREAM_REPO/$REPO_SUFFIX:$TAG"
233 # check if the docker registry is enabled, else the variable will be missing
235 if [[ -z "$CI_REGISTRY_IMAGE" ]]
237 echo "ERROR! Looks like your repository/fork has disabled Docker Registries."
238 echo "Pleae enable them by following the documentation from here:"
239 echo "https://docs.gitlab.com/ee/user/packages/container_registry/#enable-the-container-registry-for-your-project"
243 # Newer versions of podman/buildah try to set overlayfs mount options when
244 # using the vfs driver, and this causes errors.
245 - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
247 - *check_image_exists
249 # This part of the job should only ever be possible to be reach in a gst-ci fork
251 if [[ "$CI_PROJECT_NAME" != 'gst-ci' ]]
253 echo "ERROR! Something is wrong!"
254 echo "This part of the job is supposed to be executed only in gst-ci forks, and its probably going to fail else"
258 - echo "Building image $LOCAL_IMAGE"
262 --build-arg DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH
263 --label ci.job_id=$CI_JOB_ID
264 --label pipeline.url=$CI_PIPELINE_URL
265 --label git.ref_name=$CI_COMMIT_REF_NAME
266 --label git.sha=$CI_COMMIT_SHA
267 --label gitlab.project_path=$CI_PROJECT_PATH
268 --label gitlab.project_url=$CI_PROJECT_URL
269 --label fdo.upstream-repo=$GST_UPSTREAM_REPO
274 - buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
278 if [ "$CI_PROJECT_PATH" = "gstreamer/gst-ci" ]; then
279 if [ "$LOCAL_IMAGE" != "$GST_UPSTREAM_IMAGE" ]; then
280 echo "ERROR!!! AAAAA! THE IMAGE URI DOES NOT MATCH THE EXPECTED UPSTREAM ONE"
282 echo $GST_UPSTREAM_IMAGE
287 - buildah push $LOCAL_IMAGE
290 stage: "build docker"
292 REPO_SUFFIX: "$FEDORA_AMD64_SUFFIX"
293 TAG: "$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
295 CONTEXT_DIR: "./docker/fedora/"
296 DOCKERFILE: "docker/fedora/Dockerfile"
299 cerbero fedora amd64 docker:
300 stage: "build docker"
302 REPO_SUFFIX: "$CERBERO_AMD64_SUFFIX"
303 TAG: "$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
305 CONTEXT_DIR: "docker/cerbero/"
306 DOCKERFILE: "docker/cerbero/Dockerfile-fedora"
310 stage: "build docker"
312 REPO_SUFFIX: "$ANDROID_AMD64_SUFFIX"
313 TAG: "$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
315 CONTEXT_DIR: "docker/android/"
316 DOCKERFILE: "docker/android/Dockerfile"
319 alpine amd64 manifest builder docker:
320 stage: "build docker"
322 REPO_SUFFIX: "$MANIFEST_AMD64_SUFFIX"
323 TAG: '$MANIFEST_TAG-$GST_UPSTREAM_BRANCH'
325 CONTEXT_DIR: "docker/build_manifest/"
326 DOCKERFILE: "docker/build_manifest/Dockerfile"
329 gst-indent amd64 docker:
330 stage: "build docker"
332 REPO_SUFFIX: "$INDENT_AMD64_SUFFIX"
333 TAG: "$INDENT_TAG-$GST_UPSTREAM_BRANCH"
335 CONTEXT_DIR: "docker/indent/"
336 DOCKERFILE: "docker/indent/Dockerfile"
339 windows amd64 docker:
340 stage: "build docker"
343 REPO_SUFFIX: "$WINDOWS_AMD64_SUFFIX"
344 TAG: "$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
346 # Unlike the buildah/linux jobs, this file
347 # needs to be relative to docker/windows/ subdir
348 # as it makes life easier in the powershell script
350 # We also don't need a CONTEXT_DIR var as its also
351 # hardcoded to be docker/windows/
352 DOCKERFILE: "Dockerfile"
358 - $env:WINDOWS_CONTAINER_SCRIPT_PATH = "$env:CI_PROJECT_DIR\container.ps1"
359 - echo "Fetching $env:WINDOWS_CONTAINER_SCRIPT_URL"
360 - Invoke-WebRequest -Uri $env:WINDOWS_CONTAINER_SCRIPT_URL -OutFile $env:WINDOWS_CONTAINER_SCRIPT_PATH
362 - "& $env:WINDOWS_CONTAINER_SCRIPT_PATH $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE $DOCKERFILE"
365 echo "Failed to build the image"
370 # Job to create the manifest.xml to used for our builds
373 image: $MANIFEST_IMAGE
375 # Always have automatic pipeline for branchs in cerbero and docs
376 # cause they need to update artifacts, like the docs site or cerbero deps
377 - if: '$CI_PROJECT_PATH == "gstreamer/cerbero"'
378 - if: '$CI_PROJECT_PATH == "gstreamer/gst-docs"'
380 # If the MR is assigned to the Merge bot, trigger the pipeline automatically
381 - if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
382 # When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
383 # to avoid wasting CI resources
384 - if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
386 # If this matches, it means the pipeline is running against either the main
387 # or a stable branch, so make it manual
388 - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
394 - gitlab/build_manifest.py --self-update
395 - gitlab/build_manifest.py ${CI_PROJECT_DIR}/manifest.xml
396 - cat ${CI_PROJECT_DIR}/manifest.xml
409 GIT_STRATEGY: 'fetch'
411 - if: '$CI_PROJECT_NAME !~ /^(gstreamer-sharp|gst-integration-testsuites|cerbero|gst-docs)$/'
413 # man indent. grep RETURN VALUE, grab a beer on my behalf...
414 - indent --version || true
417 if test -f ".indentignore"; then
419 while read -r line; do
420 if test -n "$line"; then
421 filter_args+=("-e" "$line")
423 done < ".indentignore"
424 if [[ ${#filter_args[@]} -gt 0 ]]; then
425 filter_cmd=("grep" "-v" "${filter_args[@]}")
428 find . -name '*.c' | "${filter_cmd[@]}" | xargs -d '\n' gst-indent
430 if git diff --quiet; then
431 echo "Code is properly formatted"
433 git diff --color=always
434 echo 'style diverges, please run gst-indent first'
439 # Check "allow-edit" checkbox on merge requests with ci-fairy
442 extends: '.fdo.ci-fairy'
448 - ci-fairy check-merge-request --require-allow-collaboration
450 - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
453 # gst-build setup templates
455 .gst_build_template: &gst_build
457 # Sometimes, gitlab-runner want to reuse
458 # existing docker volumes without cleaning them up...
459 # Make sure the docker volume is clean
460 - rm -rf gst-build || true
461 - rm -rf meson-logs || true
462 - rm -rf validate-logs || true
464 - curl -L -o clone_manifest_ref.py "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py"
465 - python3 clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination gst-build
467 # only copy immediate directories. We don't want to modify .wrap files
468 - find /gst-build/subprojects/ -mindepth 1 -maxdepth 1 -type d -exec cp -r \{\} subprojects/ \;
470 # Reset the state of the subprojects to what gst-build expects
471 - meson subprojects update --reset
472 - ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
474 - meson build/ $MESON_ARGS
476 - ccache --show-stats
478 .gst_build_ccache_vars:
480 CCACHE_COMPILERCHECK: 'content'
481 CCACHE_COMPRESS: 'true'
482 CCACHE_BASEDIR: '/cache/gstreamer/gst-build'
483 CCACHE_DIR: '/cache/gstreamer/gst-build/ccache/'
484 # shared across everything really
485 CCACHE_MAXSIZE: '10G'
486 CARGO_HOME: '/cache/gstreamer/cargo'
488 .simple_fedora_build: &simple_build >-
489 ${DEFAULT_MESON_ARGS}
492 -Dgst-omx:target=generic
495 ${MESON_BUILDTYPE_ARGS}
501 - '.gst_build_ccache_vars'
504 # Taking into account the slowest shared runner + time needed to upload the binaries to artifacts
505 # Also need to take into account I/O of pulling docker images and uploading artifacts
508 MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
510 - if: '$CI_PROJECT_NAME != "cerbero"'
514 - mv gst-build/build/meson-logs/ meson-logs
515 # Cleanup everything else to reduce the size
516 # of the docker volume we leave behind
525 .build fedora x86_64:
529 MESON_ARGS: *simple_build
531 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-omx|gst-plugins-rs)$/'
533 build nodebug fedora x86_64:
537 MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
539 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
541 build static fedora x86_64:
542 extends: '.build fedora x86_64'
544 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
546 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
548 build static nodebug fedora x86_64:
549 extends: 'build nodebug fedora x86_64'
551 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
553 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
555 build clang fedora x86_64:
556 extends: '.build fedora x86_64'
559 CXX: 'ccache clang++'
561 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
566 - '.gst_build_ccache_vars'
570 MESON_ARGS: *simple_build
572 # Disable colored output to avoid weird rendering issues
573 GST_DEBUG_NO_COLOR: "true"
574 CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/validate-logs/"
575 GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true"
577 CARGO_HOME: "/cache/gstreamer/cargo"
578 # Enable the fault handler so we get backtraces on segfaults.
579 # any non-empty string will do
580 PYTHONFAULTHANDLER: "enabled"
582 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-examples|gst-docs)$/'
586 - echo "-> Running ${TEST_SUITE}"
589 gst-validate-launcher ${TEST_SUITE}
595 --timeout-factor "${TIMEOUT_FACTOR}"
596 --fail-on-testlist-change
597 -l "${CI_PROJECT_DIR}/validate-logs/"
598 --xunit-file "${CI_PROJECT_DIR}/validate-logs/xunit.xml"
599 ${EXTRA_VALIDATE_ARGS}
601 - mv gst-build/build/meson-logs/ meson-logs
602 # Cleanup everything else to reduce the size
603 # of the docker volume we leave behind
614 - "validate-logs/*.xml"
622 extends: '.test fedora x86_64'
624 TEST_SUITE: "check.gst*"
626 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
628 integration testsuites fedora:
629 extends: '.test fedora x86_64'
632 EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
633 TEST_SUITE: "validate ges"
635 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-examples|gst-omx|gstreamer-sharp|gst-plugins-rs)$/'
638 # introspection has been disabled as the static build does not support it.
639 # See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/162
641 extends: 'build static fedora x86_64'
645 --default-library=static
646 -Dintrospection=disabled
649 - if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
653 - meson test -C build -v test-gst-full
660 gstreamer-full-minimal:
661 extends: 'build static fedora x86_64'
665 --default-library=static
666 -Dauto_features=disabled
667 -Dgstreamer:check=enabled
669 -Dgst-plugins-base:alsa=enabled
670 -Dgst-plugins-base:typefind=enabled
671 -Dgst-plugins-base:pbtypes=enabled
672 -Dgst-full-elements=coreelements:filesrc,fakesink,identity,input-selector
673 -Dgst-full-typefind-functions=typefindfunctions:wav,flv
674 -Dgst-full-device-providers=alsa:alsadeviceprovider
675 -Dgst-full-dynamic-types=pbtypes:video_multiview_flagset
678 - if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
682 - meson test -C build -v test-gst-full
683 - meson test -C build test-gst-full-features --test-args "-e filesrc,identity,fakesink -E filesink,capsfilter -t audio/x-wav -T video/vivo -d alsadeviceprovider -D v4l2deviceprovider -l GstVideoMultiviewFlagsSet"
684 - strip build/libgstreamer-full-1.0.so
685 - ls -l build/libgstreamer-full-1.0.so
693 .valgrind fedora x86_64:
694 extends: '.test fedora x86_64'
697 EXTRA_VALIDATE_ARGS: "--valgrind"
700 extends: '.valgrind fedora x86_64'
702 TEST_SUITE: "check.gstreamer\\..*"
704 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-ci|gst-devtools)$/'
707 extends: '.valgrind fedora x86_64'
709 TEST_SUITE: "check.gst-plugins-base\\..*"
711 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci|gst-devtools)$/'
714 extends: '.valgrind fedora x86_64'
716 TEST_SUITE: "check.gst-plugins-good\\..*"
717 # take longer time due to splitmux unit test
720 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci|gst-devtools)$/'
723 extends: '.valgrind fedora x86_64'
725 TEST_SUITE: "check.gst-plugins-ugly\\..*"
727 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci|gst-devtools)$/'
730 extends: '.valgrind fedora x86_64'
732 TEST_SUITE: "check.gst-plugins-bad\\..*"
734 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci|gst-devtools)$/'
737 extends: '.valgrind fedora x86_64'
739 TEST_SUITE: "check.gst-editing-services\\..*"
741 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci|gst-devtools)$/'
743 # Template for Cerbero GStreamer Build
746 # CONFIG: The name of the configuration file to use
747 # ARCH: The cerbero <os>_<cpu> (used in cache key)
751 image: $CERBERO_IMAGE
753 - if: '$CI_PROJECT_NAME == "cerbero"'
756 # Ensure that the runners it will be executed on
757 # will have plenty of space for the cache
761 CCACHE_COMPILERCHECK: "content"
762 CCACHE_COMPRESS: "true"
763 CCACHE_BASEDIR: "/cache/gstreamer/cerbero/"
764 CCACHE_DIR: "/cache/gstreamer/cerbero/ccache/"
765 # shared across everything really
766 CCACHE_MAXSIZE: "50G"
768 CERBERO_HOME: "cerbero-build"
769 CERBERO_SOURCES: "cerbero-sources"
770 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
771 CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
772 CERBERO_PACKAGE_ARGS: "-t"
773 CERBERO_RUN_WRAPPER: "" # 'wine' on cross-winXX
774 CERBERO_RUN_SUFFIX: "" # '.exe' on cross-winXX
776 # used by macos packages as we only ever install to a fixed directory
777 CERBERO_OVERRIDDEN_DIST_DIR: ""
778 # location where the cerbero git repo is stored on the image
779 CERBERO_HOST_DIR: "/cerbero/"
781 - echo "Fetching ${CERBERO_SCRIPT_URL}"
782 - curl -L -o cerbero_setup.sh "${CERBERO_SCRIPT_URL}"
783 - chmod +x cerbero_setup.sh
784 - ./cerbero_setup.sh cerbero_before_script
786 - ./cerbero_setup.sh cerbero_script
788 key: "${CI_JOB_NAME}"
790 - "${CERBERO_SOURCES}"
792 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
797 - "${CERBERO_HOME}/logs"
801 image: $WINDOWS_IMAGE
812 ${DEFAULT_MESON_ARGS}
816 -Dgst-plugins-base:pango=enabled
817 -Dgst-plugins-good:cairo=enabled
819 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
821 # Sometimes there's seems to be an existing gst-build clone that comes either from the ether or
822 # from a previous job due to some gitlab bug or implicit behavior?
823 # So let's always check and clear it out if its there
824 # https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
825 - if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
827 # Make sure powershell exists on errors
828 # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
829 - $ErrorActionPreference = "Stop"
831 - Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py
832 - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
833 - cd $env:CI_PROJECT_DIR/gst-build
836 # FIXME: remove this once the windows image is rebuilt/updated
837 - pip install -U meson==0.56.2
839 - cp -r C:/subprojects/* subprojects/
840 - cd $env:CI_PROJECT_DIR/gst-build
841 # Reset the subprojects to invalidate the cache if needed
842 - meson subprojects update --reset
843 # Run the git-update script and feed it the manifest to setup the environment
844 - python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
846 # For some reason, options are separated by newline instead of space, so we
847 # have to replace them first.
848 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
849 # Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script.
850 # Environment variables substitutions is done by PowerShell before calling
851 # cmd.exe, that's why we use $env:FOO instead of %FOO%
852 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
853 meson build $env:MESON_ARGS &&
859 - 'gst-build/build/meson-logs/'
862 extends: '.build windows'
867 extends: '.build windows'
872 extends: '.build windows'
875 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
879 # Sometimes there's seems to be an existing gst-build clone that comes either from the ether or
880 # from a previous job due to some gitlab bug or implicit behavior?
881 # So let's always check and clear it out if its there
882 # https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
883 - if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
885 # Make sure powershell exists on errors
886 # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
887 - $ErrorActionPreference = "Stop"
889 # For some reason docker build hangs if this is included in the image, needs more troubleshooting
890 - $env:PATH += ';C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\mingw32\bin'
891 # Copied from https://github.com/msys2/setup-msys2/blob/master/main.js#L98
892 - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
893 - C:\msys64\usr\bin\bash -c "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
894 - echo "Updating MSYS2"
895 - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm || echo Update failed, ignoring"
896 - echo "Killing all MSYS2 processes"
897 - taskkill /F /FI "MODULES eq msys-2.0.dll"
898 - echo "Completing MSYS2 update"
899 - C:\msys64\usr\bin\bash -c "pacman -Suu --noconfirm"
900 - echo "Installing needed MSYS2 packages"
901 - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
903 - Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py
904 - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
905 - cd $env:CI_PROJECT_DIR/gst-build
907 - cp -r C:\subprojects\* subprojects\
909 # Run the git-update script and feed it the manifest to setup the environment
910 - cd $env:CI_PROJECT_DIR/gst-build; python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
911 # For some reason, options are separated by newline instead of space, so we
912 # have to replace them first.
913 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
914 # Replace forward slashes with backwards so bash doesn't complain
915 - $env:_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\','/')
916 - C:\msys64\usr\bin\bash -c "cd $env:_PROJECT_DIR/gst-build &&
917 meson build $env:MESON_ARGS &&
921 # Template for Cerbero GStreamer Deps
923 # This template is used by cerbero/ project to pre-built the GStreamer
924 # dependencies. When available, the .cerbero jobs will download this artifact
925 # in order to speed up the build.
928 # CONFIG: The name of the configuration file to use
929 # ARCH: The cerbero <os>_<cpu> (used in cache key)
931 # Produce an artifact with the dist/ and .cache along
932 # with the associated build-tools.
936 - if: '$CI_PROJECT_NAME == "cerbero"'
938 - ./cerbero_setup.sh cerbero_deps_script
941 # Cerbero Linux X86_64 build
943 cerbero deps fedora x86_64:
944 extends: '.cerbero deps'
946 CONFIG: "linux.config"
949 build cerbero fedora x86_64:
952 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
954 CONFIG: "linux.config"
957 # Cerbero Android Universal build
959 .cerbero cross-android universal:
961 CONFIG: "cross-android-universal.cbc"
962 ARCH: "android_universal"
964 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
969 - "${CERBERO_HOME}/logs"
972 cerbero deps cross-android universal:
975 - '.cerbero cross-android universal'
977 build cerbero cross-android universal:
980 - '.cerbero cross-android universal'
982 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
983 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
986 # Cerbero Cross Windows builds
988 cerbero deps cross-windows x86:
989 extends: '.cerbero deps'
991 CONFIG: "cross-win32.cbc"
994 build cerbero cross win32:
997 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
999 CONFIG: "cross-win32.cbc"
1000 CERBERO_RUN_WRAPPER: "wine"
1001 CERBERO_RUN_SUFFIX: ".exe"
1004 cerbero deps cross-windows x86_64:
1005 extends: '.cerbero deps'
1007 CONFIG: "cross-win64.cbc"
1008 ARCH: "mingw_x86_64"
1010 build cerbero cross win64:
1013 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
1015 CONFIG: "cross-win64.cbc"
1016 CERBERO_RUN_WRAPPER: "wine"
1017 CERBERO_RUN_SUFFIX: ".exe"
1020 # Build an Android App using the android binaries
1022 .cross-android universal examples:
1023 image: $ANDROID_IMAGE
1026 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
1027 GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal
1029 - mkdir -p ${EXAMPLES_HOME}/outputs
1030 - curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
1031 - chmod +x clone_manifest_ref.py
1032 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
1033 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
1034 - rm clone_manifest_ref.py
1036 # extract our binaries
1037 - rm -f gstreamer-1.0-android-universal-*-runtime.tar.*
1038 - mkdir ${GSTREAMER_ROOT_ANDROID}
1039 - time tar -C ${GSTREAMER_ROOT_ANDROID} -xf gstreamer-1.0-android-universal-*.tar.*
1041 # gst-examples - player
1042 - chmod +x ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew
1043 - ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/playback/player/android assembleDebug
1044 - cp ${EXAMPLES_HOME}/gst-examples/playback/player/android/app/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1046 # gst-examples - vulkan
1047 - chmod +x ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew
1048 - ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/vulkan/android assembleDebug
1049 - cp ${EXAMPLES_HOME}/gst-examples/vulkan/android/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1051 # gst-docs android tutorials
1052 - chmod +x ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew
1053 - ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android assembleDebug
1054 - cp ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/android-tutorial-*/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1056 - rm -rf ${GSTREAMER_ROOT_ANDROID}
1057 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
1059 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1064 - "${EXAMPLES_HOME}/outputs"
1066 cross-android universal examples:
1067 extends: ".cross-android universal examples"
1069 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1070 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1072 - "build cerbero cross-android universal"
1074 cerbero cross-android universal examples:
1075 extends: ".cross-android universal examples"
1077 - if: '$CI_PROJECT_NAME == "cerbero"'
1079 - "cerbero deps cross-android universal"
1082 # Cerbero macOS X86_64 build
1084 .cerbero macos x86_64:
1086 ARCH: "darwin_x86_64"
1087 CONFIG: "osx-x86-64.cbc"
1088 CERBERO_PACKAGE_ARGS: ""
1090 CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
1091 CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
1095 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1100 - "${CERBERO_HOME}/logs"
1101 - "gstreamer-1.0-1.*.pkg"
1102 - "gstreamer-1.0-devel-1.*.pkg"
1104 cerbero deps macos x86_64:
1107 - '.cerbero macos x86_64'
1109 build cerbero macos x86_64:
1112 - '.cerbero macos x86_64'
1114 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1119 .cerbero cross-ios universal:
1121 ARCH: "ios_universal"
1122 CONFIG: "cross-ios-universal.cbc"
1123 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
1124 CERBERO_PACKAGE_ARGS: ""
1126 CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
1130 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1135 - "${CERBERO_HOME}/logs"
1136 - "gstreamer-1.0-*-ios-universal.pkg"
1138 cerbero deps cross-ios universal:
1141 - '.cerbero cross-ios universal'
1143 build cerbero cross-ios universal:
1146 - '.cerbero cross-ios universal'
1148 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1149 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1152 image: $FEDORA_DOCS_IMAGE
1154 - '.gst_build_ccache_vars'
1156 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-integration-testsuites|gst-plugins-rs|gst-python)$/'
1161 MESON_ARGS: *simple_build
1162 MESON_BUILDTYPE_ARGS: "-Ddoc=enabled"
1163 CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/"
1165 - pip3 install --upgrade hotdoc
1167 # FIXME: remove this once the docs image is updated
1168 - pip3 install -U meson==0.56.2
1171 - ./gst-uninstalled.py ninja -C build/ plugins_doc_caches
1173 python3 -c "import os, subprocess, sys
1174 subprojects = [os.environ['CI_PROJECT_NAME']]
1175 if subprojects[0] in ['gst-ci', 'gst-build']:
1176 subprojects = ['gstreamer', 'gst-plugins-ugly', 'gst-omx', 'gst-plugins-good', 'gst-plugins-base', 'gstreamer-vaapi', 'gst-libav', 'gst-editing-services', 'gst-rtsp-server', 'gst-plugins-bad',]
1178 diffsdir = '../plugins-cache-diffs'
1179 os.makedirs(diffsdir, exist_ok=True)
1181 for subproject in subprojects:
1182 cwd = os.path.join('subprojects', subproject)
1184 subprocess.check_call(['git', 'diff', '--quiet'], cwd=cwd)
1185 except subprocess.CalledProcessError:
1186 diffname = os.path.join(diffsdir, '%s_cache.diff' % subproject)
1188 with open(diffname, 'w') as diff:
1189 subprocess.check_call(['git', 'diff'], stdout=diff, cwd=cwd)
1190 print('\033[91mYou have a diff in the %s documentation cache. Please update with:\033[0m' % subproject)
1191 print(' $ curl %s/%s | git apply -' % (os.environ['CI_ARTIFACTS_URL'], diffname.replace('../', '')))
1193 print('(note that it might take a few minutes for artefacts to be available on the server)\n')
1196 - ./gst-uninstalled.py hotdoc run --conf-file=build/subprojects/gst-docs/GStreamer-doc.json --fatal-warnings
1198 - mv gst-build/build/subprojects/gst-docs/GStreamer-doc/html documentation/
1204 - plugins-cache-diffs/
1207 # Build an iOS App using the iOS binaries
1209 .cross-ios universal examples:
1212 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
1213 # disable codesigning so we don't need developer identities on the CI
1216 CODE_SIGNING_REQUIRED="NO"
1217 CODE_SIGN_IDENTITY=""
1218 CODE_SIGNING_ALLOWED="NO"
1219 CODE_SIGN_ENTITLEMENTS=""
1221 # install the binaries
1222 - installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose
1224 - curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
1225 - chmod +x clone_manifest_ref.py
1226 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
1227 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
1228 - rm clone_manifest_ref.py
1230 # dump some useful information
1231 - xcodebuild -version
1232 - xcodebuild -showsdks
1234 # gst-docs ios tutorials
1235 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj
1236 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj ${XCODE_BUILD_ARGS}
1239 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj
1240 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj ${XCODE_BUILD_ARGS}
1242 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
1246 cross-ios universal examples:
1247 extends: ".cross-ios universal examples"
1249 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1250 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1252 - "build cerbero cross-ios universal"
1254 cerbero cross-ios universal examples:
1255 extends: ".cross-ios universal examples"
1257 - if: '$CI_PROJECT_NAME == "cerbero"'
1259 - "cerbero deps cross-ios universal"
1261 build gst-omx zynq fedora x86_64:
1262 extends: '.build fedora x86_64'
1264 MESON_ARGS: "-Domx=enabled -Dgst-omx:target=zynqultrascaleplus -Dgst-omx:header_path=${CI_PROJECT_DIR}/vcu-omx-il/omx_header -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} $MESON_GST_WERROR"
1266 - if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
1268 - git clone https://github.com/Xilinx/vcu-omx-il.git --branch=release-2020.1 ${CI_PROJECT_DIR}/vcu-omx-il
1270 build gst-omx tizonia fedora x86_64:
1271 extends: '.build fedora x86_64'
1273 MESON_ARGS: "-Domx=enabled -Dgst-omx:target=tizonia -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} $MESON_GST_WERROR"
1274 PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:${CI_PROJECT_DIR}/tizonia-install/lib64/pkgconfig/
1276 - if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
1278 - git clone https://github.com/tizonia/tizonia-openmax-il --branch v0.20.2
1279 - cd tizonia-openmax-il
1280 - meson build -Dclients=false -Dplugins='' -Dplayer=false -Dprefix=${CI_PROJECT_DIR}/tizonia-install
1282 - ninja -C build install
1286 # Cerbero Native Windows builds
1288 .cerbero windows native:
1290 image: $CERBERO_WINDOWS_IMAGE
1294 - 'gstreamer-windows'
1299 CERBERO_HOST_DIR: "C:/cerbero"
1300 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v visualstudio -v nowerror"
1301 CERBERO_RUN_SUFFIX: ".exe"
1304 - $env:CI_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\', '/')
1305 - $env:CERBERO_SCRIPTS_PATH = "$env:CI_PROJECT_DIR/cerbero_setup.sh"
1306 - echo "Fetching $env:CERBERO_SCRIPT_URL"
1307 - Invoke-WebRequest -Uri $env:CERBERO_SCRIPT_URL -OutFile $env:CERBERO_SCRIPTS_PATH
1308 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_before_script"
1310 cerbero deps msvc x86_64:
1311 extends: ['.cerbero deps', '.cerbero windows native']
1313 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_deps_script"
1315 build cerbero msvc x86_64:
1316 extends: ['.cerbero', '.cerbero windows native']
1318 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_script"
1320 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'