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-30.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-09-09.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'
41 WINDOWS_RUST_AMD64_SUFFIX: 'amd64/windows-rust'
43 FEDORA_IMAGE: "$CI_REGISTRY_IMAGE/$FEDORA_AMD64_SUFFIX:$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
44 FEDORA_DOCS_IMAGE: "registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2020-07-03.0-master"
45 CERBERO_IMAGE: "$CI_REGISTRY_IMAGE/$CERBERO_AMD64_SUFFIX:$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
46 ANDROID_IMAGE: "$CI_REGISTRY_IMAGE/$ANDROID_AMD64_SUFFIX:$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
47 MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$MANIFEST_AMD64_SUFFIX:$MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
48 TEST_MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$TEST_MANIFEST_AMD64_SUFFIX:$TEST_MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
49 INDENT_IMAGE: "$CI_REGISTRY_IMAGE/$INDENT_AMD64_SUFFIX:$INDENT_TAG-$GST_UPSTREAM_BRANCH"
50 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
51 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
53 RUST_MINIMUM_VERSION: '1.54.0'
54 RUST_LATEST_VERSION: '1.55.0'
56 WINDOWS_RUST_MINIMUM_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_MINIMUM_VERSION"
57 WINDOWS_RUST_MINIMUM_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_MINIMUM_VERSION"
59 WINDOWS_RUST_LATEST_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_LATEST_VERSION"
60 WINDOWS_RUST_LATEST_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_LATEST_VERSION"
62 # Current windows image doesn't seem to be able to spawn procceses for reason,
63 # use a different image until this is debuged
64 # 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'
65 # failed to create process
66 CERBERO_WINDOWS_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v13-master'
68 # Can't use $CI_* variables since we use this template in all repos, not just gst-ci
69 CERBERO_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/cerbero_setup.sh"
70 WINDOWS_CONTAINER_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/docker/windows/container.ps1"
73 MESON_BUILDTYPE_ARGS: --default-library=both
75 -Dlibnice:tests=disabled
76 -Dlibnice:examples=disabled
77 -Dopenh264:tests=disabled
78 -Dpygobject:tests=false
90 -Dgstreamer:werror=true
91 -Dgst-plugins-base:werror=true
92 -Dgst-plugins-good:werror=true
93 -Dgst-plugins-ugly:werror=true
94 -Dgst-plugins-bad:werror=true
95 -Dgst-rtsp-server:werror=true
96 -Dgst-libav:werror=true
97 -Dgst-examples:werror=true
98 -Dgst-editing-services:werror=true
99 -Dgst-docs:werror=true
100 -Dgst-omx:werror=true
101 -Dgst-devtools:werror=true
102 -Dgst-python:werror=true
103 -Dgstreamer-vaapi:werror=true
104 -Dgstreamer-sharp:werror=true
106 DEFAULT_CERBERO_ARGS: >
112 - if: $CI_MERGE_REQUEST_IID
113 # don't create a pipeline if its a commit pipeline, on a branch and that branch has
114 # open merge requests (bc we will get a MR build instead)
115 - if: $CI_OPEN_MERGE_REQUESTS
118 - if: $CI_COMMIT_BRANCH
123 # This can be used to configure global behaviour our our jobs.
129 - 'runner_system_failure'
130 - 'stuck_or_timeout_failure'
131 - 'scheduler_failure'
136 # Script to check if a docker image exists in the upstream registry
137 # and if so copy it to the forked registry so we can use it
139 # This is copied/adapted from citemplates/templates/fedora.yml
140 # https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
141 .check_image: &check_image_exists |
142 # if-not-exists steps
145 if [[ -z "$GST_FORCE_REBUILD" ]]
147 # disable exit on failure
150 # check if our image is already in the current registry
151 # we store the sha of the digest and the layers
152 skopeo inspect docker://$LOCAL_IMAGE | jq '[.Digest, .Layers]' > local_sha
154 # check if our image is already in our gst-ci registry fork
155 skopeo inspect docker://$LOCAL_GST_CI_IMAGE | jq '[.Digest, .Layers]' > local_gst_ci_sha
157 # check if our image is already in the upstream registry
158 if [[ -z "$GST_UPSTREAM_REPO" ]]
160 echo "WARNING! Variable \$GST_UPSTREAM_REPO is undefined, cannot check for images"
162 skopeo inspect docker://$GST_UPSTREAM_IMAGE | jq '[.Digest, .Layers]' > upstream_sha
165 # reenable exit on failure
168 # if the upstream repo has an image, ensure we use the same
169 if [ -s upstream_sha ]
172 echo "Checking if $LOCAL_IMAGE is up to date"
173 # ensure we use the same image from upstream
174 diff upstream_sha local_sha && exit 0 || true
176 echo "Copying image from gstreamer/gst-ci to local registry"
177 # copy the original image into the current project registry namespace
178 # we do 2 attempts with skopeo copy at most
179 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
180 docker://$GST_UPSTREAM_IMAGE \
181 docker://$LOCAL_IMAGE || \
182 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
183 docker://$GST_UPSTREAM_IMAGE \
184 docker://$LOCAL_IMAGE
191 # if the local ci fork repo has an image, ensure we use the same
192 if [ -s local_gst_ci_sha ]
194 echo "Checking if $LOCAL_GST_CI_IMAGE is up to date"
195 # ensure we use the same image from upstream
196 diff local_gst_ci_sha local_sha && exit 0 || true
198 echo "Copying image from $CI_PROJECT_NAMESPACE/gst-ci to local registry"
199 # copy the original image into the current project registry namespace
200 # we do 2 attempts with skopeo copy at most
201 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
202 docker://$LOCAL_GST_CI_IMAGE \
203 docker://$LOCAL_IMAGE || \
204 skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
205 docker://$LOCAL_GST_CI_IMAGE \
206 docker://$LOCAL_IMAGE
211 # if we have a local image but none in the upstream repo, use our
214 echo "Using $LOCAL_IMAGE"
220 # Build docker images from Dockerfiles
222 # This is copied/adapted from citemplates/templates/fedora.yml
223 # https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
225 # CITemplates builds uses buildah run/commit workflow to build the images which doesn't
226 # fit us atm and our images need further adjustment to make use of it. Porting to
227 # ci-templates is the next step though.
229 # All the documentation from citemplates should be applicable here, so please refer there
231 image: "$CI_REGISTRY/freedesktop/ci-templates/buildah:2020-07-20.1"
233 STORAGE_DRIVER: 'vfs'
234 BUILDAH_FORMAT: 'docker'
235 BUILDAH_ISOLATION: 'chroot'
239 - export LOCAL_IMAGE="$CI_REGISTRY_IMAGE/$REPO_SUFFIX:$TAG"
240 - export LOCAL_GST_CI_IMAGE="$CI_REGISTRY/$CI_PROJECT_NAMESPACE/gst-ci/$REPO_SUFFIX:$TAG"
241 - export GST_UPSTREAM_IMAGE="$CI_REGISTRY/$GST_UPSTREAM_REPO/$REPO_SUFFIX:$TAG"
243 # check if the docker registry is enabled, else the variable will be missing
245 if [[ -z "$CI_REGISTRY_IMAGE" ]]
247 echo "ERROR! Looks like your repository/fork has disabled Docker Registries."
248 echo "Pleae enable them by following the documentation from here:"
249 echo "https://docs.gitlab.com/ee/user/packages/container_registry/#enable-the-container-registry-for-your-project"
253 # Newer versions of podman/buildah try to set overlayfs mount options when
254 # using the vfs driver, and this causes errors.
255 - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
257 - *check_image_exists
259 # This part of the job should only ever be possible to be reach in a gst-ci fork
261 if [[ "$CI_PROJECT_NAME" != 'gst-ci' ]]
263 echo "ERROR! Something is wrong!"
264 echo "This part of the job is supposed to be executed only in gst-ci forks, and its probably going to fail else"
268 - echo "Building image $LOCAL_IMAGE"
272 --build-arg DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH
273 --label ci.job_id=$CI_JOB_ID
274 --label pipeline.url=$CI_PIPELINE_URL
275 --label git.ref_name=$CI_COMMIT_REF_NAME
276 --label git.sha=$CI_COMMIT_SHA
277 --label gitlab.project_path=$CI_PROJECT_PATH
278 --label gitlab.project_url=$CI_PROJECT_URL
279 --label fdo.upstream-repo=$GST_UPSTREAM_REPO
284 - buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
288 if [ "$CI_PROJECT_PATH" = "gstreamer/gst-ci" ]; then
289 if [ "$LOCAL_IMAGE" != "$GST_UPSTREAM_IMAGE" ]; then
290 echo "ERROR!!! AAAAA! THE IMAGE URI DOES NOT MATCH THE EXPECTED UPSTREAM ONE"
292 echo $GST_UPSTREAM_IMAGE
297 - buildah push $LOCAL_IMAGE
300 stage: "build docker"
302 REPO_SUFFIX: "$FEDORA_AMD64_SUFFIX"
303 TAG: "$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
305 CONTEXT_DIR: "./docker/fedora/"
306 DOCKERFILE: "docker/fedora/Dockerfile"
309 cerbero fedora amd64 docker:
310 stage: "build docker"
312 REPO_SUFFIX: "$CERBERO_AMD64_SUFFIX"
313 TAG: "$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
315 CONTEXT_DIR: "docker/cerbero/"
316 DOCKERFILE: "docker/cerbero/Dockerfile-fedora"
320 stage: "build docker"
322 REPO_SUFFIX: "$ANDROID_AMD64_SUFFIX"
323 TAG: "$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
325 CONTEXT_DIR: "docker/android/"
326 DOCKERFILE: "docker/android/Dockerfile"
329 alpine amd64 manifest builder docker:
330 stage: "build docker"
332 REPO_SUFFIX: "$MANIFEST_AMD64_SUFFIX"
333 TAG: '$MANIFEST_TAG-$GST_UPSTREAM_BRANCH'
335 CONTEXT_DIR: "docker/build_manifest/"
336 DOCKERFILE: "docker/build_manifest/Dockerfile"
339 gst-indent amd64 docker:
340 stage: "build docker"
342 REPO_SUFFIX: "$INDENT_AMD64_SUFFIX"
343 TAG: "$INDENT_TAG-$GST_UPSTREAM_BRANCH"
345 CONTEXT_DIR: "docker/indent/"
346 DOCKERFILE: "docker/indent/Dockerfile"
349 windows amd64 docker:
350 stage: "build docker"
354 # Unlike the buildah/linux jobs, this file
355 # needs to be relative to docker/windows/ subdir
356 # as it makes life easier in the powershell script
358 # We also don't need a CONTEXT_DIR var as its also
359 # hardcoded to be docker/windows/
360 DOCKERFILE: "docker/windows/Dockerfile"
366 # We need to pass an array and to resolve the env vars, so we can't use a variable:
367 - $DOCKER_BUILD_ARGS = @("--build-arg", "DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH")
369 - $env:WINDOWS_CONTAINER_SCRIPT_PATH = "$env:CI_PROJECT_DIR\container.ps1"
370 - echo "Fetching $env:WINDOWS_CONTAINER_SCRIPT_URL"
371 - Invoke-WebRequest -Uri $env:WINDOWS_CONTAINER_SCRIPT_URL -OutFile $env:WINDOWS_CONTAINER_SCRIPT_PATH
373 - "& $env:WINDOWS_CONTAINER_SCRIPT_PATH $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE $DOCKERFILE"
376 echo "Failed to build the image"
380 .windows rust docker build:
381 stage: 'build docker'
383 - job: 'windows amd64 docker'
386 - if: '$CI_PROJECT_NAME == "gst-ci"'
388 GIT_STRATEGY: 'fetch'
390 # Unlike the buildah/linux jobs, this file
391 # needs to be relative to docker/windows/ subdir
392 # as it makes life easier in the powershell script
394 # We also don't need a CONTEXT_DIR var as its also
395 # hardcoded to be docker/windows/
396 DOCKERFILE: 'docker/windows/rust.Dockerfile'
402 # We need to pass an array and to resolve the env vars, so we can't use a variable:
403 - $DOCKER_BUILD_ARGS = @("--build-arg", "DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH", "--build-arg", "BASE_IMAGE=$WINDOWS_IMAGE", "--build-arg", "RUST_VERSION=$RUST_VERSION")
405 - $env:WINDOWS_CONTAINER_SCRIPT_PATH = "$env:CI_PROJECT_DIR\container.ps1"
406 - echo "Fetching $env:WINDOWS_CONTAINER_SCRIPT_URL"
407 - Invoke-WebRequest -Uri $env:WINDOWS_CONTAINER_SCRIPT_URL -OutFile $env:WINDOWS_CONTAINER_SCRIPT_PATH
409 - "& $env:WINDOWS_CONTAINER_SCRIPT_PATH $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $RUST_IMAGE $RUST_UPSTREAM_IMAGE $DOCKERFILE"
412 echo "Failed to build the image"
416 windows rust amd64 docker latest stable:
417 extends: '.windows rust docker build'
419 RUST_IMAGE: !reference [variables, "WINDOWS_RUST_LATEST_IMAGE"]
420 RUST_UPSTREAM_IMAGE: !reference [variables, "WINDOWS_RUST_LATEST_UPSTREAM_IMAGE"]
421 RUST_VERSION: !reference [variables, "RUST_LATEST_VERSION"]
423 windows rust amd64 docker minimum supported version:
424 extends: '.windows rust docker build'
426 RUST_IMAGE: !reference [variables, "WINDOWS_RUST_MINIMUM_IMAGE"]
427 RUST_UPSTREAM_IMAGE: !reference [variables, "WINDOWS_RUST_MINIMUM_UPSTREAM_IMAGE"]
428 RUST_VERSION: !reference [variables, "RUST_MINIMUM_VERSION"]
431 # Job to create the manifest.xml to used for our builds
434 image: $MANIFEST_IMAGE
436 # Always have automatic pipeline for branchs in cerbero and docs
437 # cause they need to update artifacts, like the docs site or cerbero deps
438 - if: '$CI_PROJECT_PATH == "gstreamer/cerbero"'
439 - if: '$CI_PROJECT_PATH == "gstreamer/gst-docs"'
441 # If the MR is assigned to the Merge bot, trigger the pipeline automatically
442 - if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
443 # When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
444 # to avoid wasting CI resources
445 - if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
448 # If this matches, it means the pipeline is running against either the main
449 # or a stable branch, so make it manual
450 - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
457 - gitlab/build_manifest.py --self-update
458 - gitlab/build_manifest.py ${CI_PROJECT_DIR}/manifest.xml
459 - cat ${CI_PROJECT_DIR}/manifest.xml
472 GIT_STRATEGY: 'fetch'
474 - if: '$CI_PROJECT_NAME !~ /^(gstreamer-sharp|gst-integration-testsuites|cerbero|gst-docs)$/'
476 # man indent. grep RETURN VALUE, grab a beer on my behalf...
477 - indent --version || true
480 if test -f ".indentignore"; then
482 while read -r line; do
483 if test -n "$line"; then
484 filter_args+=("-e" "$line")
486 done < ".indentignore"
487 if [[ ${#filter_args[@]} -gt 0 ]]; then
488 filter_cmd=("grep" "-v" "${filter_args[@]}")
491 find . -name '*.c' | "${filter_cmd[@]}" | xargs -d '\n' gst-indent
493 if git diff --quiet; then
494 echo "Code is properly formatted"
496 git diff --color=always
497 echo 'style diverges, please run gst-indent first'
502 # Check "allow-edit" checkbox on merge requests with ci-fairy
505 extends: '.fdo.ci-fairy'
511 - ci-fairy check-merge-request --require-allow-collaboration
513 - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
516 # gst-build setup templates
518 .gst_build_template: &gst_build
520 # Sometimes, gitlab-runner want to reuse
521 # existing docker volumes without cleaning them up...
522 # Make sure the docker volume is clean
523 - rm -rf gst-build || true
524 - rm -rf meson-logs || true
525 - rm -rf validate-logs || true
527 - curl -L -o clone_manifest_ref.py "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py"
528 - python3 clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination gst-build
530 # only copy immediate directories. We don't want to modify .wrap files
531 - find /gst-build/subprojects/ -mindepth 1 -maxdepth 1 -type d -exec cp -r \{\} subprojects/ \;
533 # Reset the state of the subprojects to what gst-build expects
534 - meson subprojects update --reset
535 - ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
537 - meson build/ $MESON_ARGS
539 - ccache --show-stats
541 .gst_build_ccache_vars:
543 CCACHE_COMPILERCHECK: 'content'
544 CCACHE_COMPRESS: 'true'
545 CCACHE_BASEDIR: '/cache/gstreamer/gst-build'
546 CCACHE_DIR: '/cache/gstreamer/gst-build/ccache/'
547 # shared across everything really
548 CCACHE_MAXSIZE: '10G'
549 CARGO_HOME: '/cache/gstreamer/cargo'
551 .simple_fedora_build: &simple_build >-
552 ${DEFAULT_MESON_ARGS}
555 -Dgst-omx:target=generic
558 ${MESON_BUILDTYPE_ARGS}
564 - '.gst_build_ccache_vars'
567 # Taking into account the slowest shared runner + time needed to upload the binaries to artifacts
568 # Also need to take into account I/O of pulling docker images and uploading artifacts
571 MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
573 - if: '$CI_PROJECT_NAME != "cerbero"'
577 - mv gst-build/build/meson-logs/ meson-logs
578 # Cleanup everything else to reduce the size
579 # of the docker volume we leave behind
588 .build fedora x86_64:
592 MESON_ARGS: *simple_build
594 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-omx|gst-plugins-rs)$/'
596 build nodebug fedora x86_64:
600 MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
602 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
604 build static fedora x86_64:
605 extends: '.build fedora x86_64'
607 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
609 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
611 build static nodebug fedora x86_64:
612 extends: 'build nodebug fedora x86_64'
614 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
616 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
618 build clang fedora x86_64:
619 extends: '.build fedora x86_64'
622 CXX: 'ccache clang++'
624 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
629 - '.gst_build_ccache_vars'
633 MESON_ARGS: *simple_build
635 # Disable colored output to avoid weird rendering issues
636 GST_DEBUG_NO_COLOR: "true"
637 CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/validate-logs/"
638 GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true"
640 CARGO_HOME: "/cache/gstreamer/cargo"
641 # Enable the fault handler so we get backtraces on segfaults.
642 # any non-empty string will do
643 PYTHONFAULTHANDLER: "enabled"
645 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-examples|gst-docs)$/'
649 - echo "-> Running ${TEST_SUITE}"
652 gst-validate-launcher ${TEST_SUITE}
658 --timeout-factor "${TIMEOUT_FACTOR}"
659 --fail-on-testlist-change
660 -l "${CI_PROJECT_DIR}/validate-logs/"
661 --xunit-file "${CI_PROJECT_DIR}/validate-logs/xunit.xml"
662 ${EXTRA_VALIDATE_ARGS}
664 - mv gst-build/build/meson-logs/ meson-logs
665 # Cleanup everything else to reduce the size
666 # of the docker volume we leave behind
677 - "validate-logs/*.xml"
685 extends: '.test fedora x86_64'
687 TEST_SUITE: "check.gst*"
689 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
691 integration testsuites fedora:
692 extends: '.test fedora x86_64'
695 EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
696 TEST_SUITE: "validate ges"
698 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-examples|gst-omx|gstreamer-sharp|gst-plugins-rs)$/'
701 # introspection has been disabled as the static build does not support it.
702 # See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/162
704 extends: 'build static fedora x86_64'
708 --default-library=static
709 -Dintrospection=disabled
712 - if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
716 - meson test -C build -v test-gst-full
723 gstreamer-full-minimal:
724 extends: 'build static fedora x86_64'
728 --default-library=static
729 -Dauto_features=disabled
730 -Dgstreamer:check=enabled
732 -Dgst-plugins-base:alsa=enabled
733 -Dgst-plugins-base:typefind=enabled
734 -Dgst-plugins-base:pbtypes=enabled
735 -Dgst-full-elements=coreelements:filesrc,fakesink,identity,input-selector
736 -Dgst-full-typefind-functions=typefindfunctions:wav,flv
737 -Dgst-full-device-providers=alsa:alsadeviceprovider
738 -Dgst-full-dynamic-types=pbtypes:video_multiview_flagset
741 - if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
745 - meson test -C build -v test-gst-full
746 - 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"
747 - strip build/libgstreamer-full-1.0.so
748 - ls -l build/libgstreamer-full-1.0.so
756 .valgrind fedora x86_64:
757 extends: '.test fedora x86_64'
760 EXTRA_VALIDATE_ARGS: "--valgrind"
763 extends: '.valgrind fedora x86_64'
765 TEST_SUITE: "check.gstreamer\\..*"
767 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-ci|gst-devtools)$/'
770 extends: '.valgrind fedora x86_64'
772 TEST_SUITE: "check.gst-plugins-base\\..*"
774 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci|gst-devtools)$/'
777 extends: '.valgrind fedora x86_64'
779 TEST_SUITE: "check.gst-plugins-good\\..*"
780 # take longer time due to splitmux unit test
783 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci|gst-devtools)$/'
786 extends: '.valgrind fedora x86_64'
788 TEST_SUITE: "check.gst-plugins-ugly\\..*"
790 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci|gst-devtools)$/'
793 extends: '.valgrind fedora x86_64'
795 TEST_SUITE: "check.gst-plugins-bad\\..*"
797 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci|gst-devtools)$/'
800 extends: '.valgrind fedora x86_64'
802 TEST_SUITE: "check.gst-editing-services\\..*"
804 - if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci|gst-devtools)$/'
806 # Template for Cerbero GStreamer Build
809 # CONFIG: The name of the configuration file to use
810 # ARCH: The cerbero <os>_<cpu> (used in cache key)
814 image: $CERBERO_IMAGE
816 - if: '$CI_PROJECT_NAME == "cerbero"'
819 # Ensure that the runners it will be executed on
820 # will have plenty of space for the cache
824 CCACHE_COMPILERCHECK: "content"
825 CCACHE_COMPRESS: "true"
826 CCACHE_BASEDIR: "/cache/gstreamer/cerbero/"
827 CCACHE_DIR: "/cache/gstreamer/cerbero/ccache/"
828 # shared across everything really
829 CCACHE_MAXSIZE: "50G"
831 CERBERO_HOME: "cerbero-build"
832 CERBERO_SOURCES: "cerbero-sources"
833 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
834 CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
835 CERBERO_PACKAGE_ARGS: "-t"
836 CERBERO_RUN_WRAPPER: "" # 'wine' on cross-winXX
837 CERBERO_RUN_SUFFIX: "" # '.exe' on cross-winXX
839 # used by macos packages as we only ever install to a fixed directory
840 CERBERO_OVERRIDDEN_DIST_DIR: ""
841 # location where the cerbero git repo is stored on the image
842 CERBERO_HOST_DIR: "/cerbero/"
844 - echo "Fetching ${CERBERO_SCRIPT_URL}"
845 - curl -L -o cerbero_setup.sh "${CERBERO_SCRIPT_URL}"
846 - chmod +x cerbero_setup.sh
847 - ./cerbero_setup.sh cerbero_before_script
849 - ./cerbero_setup.sh cerbero_script
851 key: "${CI_JOB_NAME}"
853 - "${CERBERO_SOURCES}"
855 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
860 - "${CERBERO_HOME}/logs"
864 image: $WINDOWS_IMAGE
875 ${DEFAULT_MESON_ARGS}
879 -Dgst-plugins-base:pango=enabled
880 -Dgst-plugins-good:cairo=enabled
882 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
884 # Sometimes there's seems to be an existing gst-build clone that comes either from the ether or
885 # from a previous job due to some gitlab bug or implicit behavior?
886 # So let's always check and clear it out if its there
887 # https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
888 - if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
890 # Make sure powershell exists on errors
891 # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
892 - $ErrorActionPreference = "Stop"
894 - 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
895 - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
896 - cd $env:CI_PROJECT_DIR/gst-build
899 # FIXME: remove this once the windows image is rebuilt/updated
900 - pip install -U meson==0.56.2
902 - cp -r C:/subprojects/* subprojects/
903 - cd $env:CI_PROJECT_DIR/gst-build
904 # Reset the subprojects to invalidate the cache if needed
905 - meson subprojects update --reset
906 # Run the git-update script and feed it the manifest to setup the environment
907 - python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
909 # For some reason, options are separated by newline instead of space, so we
910 # have to replace them first.
911 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
912 # Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script.
913 # Environment variables substitutions is done by PowerShell before calling
914 # cmd.exe, that's why we use $env:FOO instead of %FOO%
915 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
916 meson build $env:MESON_ARGS &&
922 - 'gst-build/build/meson-logs/'
925 extends: '.build windows'
930 extends: '.build windows'
935 extends: '.build windows'
938 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
942 # Sometimes there's seems to be an existing gst-build clone that comes either from the ether or
943 # from a previous job due to some gitlab bug or implicit behavior?
944 # So let's always check and clear it out if its there
945 # https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
946 - if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
948 # Make sure powershell exists on errors
949 # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
950 - $ErrorActionPreference = "Stop"
952 # For some reason docker build hangs if this is included in the image, needs more troubleshooting
953 - $env:PATH += ';C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\mingw32\bin'
954 # Copied from https://github.com/msys2/setup-msys2/blob/master/main.js#L98
955 - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
956 - C:\msys64\usr\bin\bash -c "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
957 - echo "Updating MSYS2"
958 - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm || echo Update failed, ignoring"
959 - echo "Killing all MSYS2 processes"
960 - taskkill /F /FI "MODULES eq msys-2.0.dll"
961 - echo "Completing MSYS2 update"
962 - C:\msys64\usr\bin\bash -c "pacman -Suu --noconfirm"
963 - echo "Installing needed MSYS2 packages"
964 - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
966 - 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
967 - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
968 - cd $env:CI_PROJECT_DIR/gst-build
970 - cp -r C:\subprojects\* subprojects\
972 # Run the git-update script and feed it the manifest to setup the environment
973 - cd $env:CI_PROJECT_DIR/gst-build; python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
974 # For some reason, options are separated by newline instead of space, so we
975 # have to replace them first.
976 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
977 # Replace forward slashes with backwards so bash doesn't complain
978 - $env:_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\','/')
979 - C:\msys64\usr\bin\bash -c "cd $env:_PROJECT_DIR/gst-build &&
980 meson build $env:MESON_ARGS &&
984 # Template for Cerbero GStreamer Deps
986 # This template is used by cerbero/ project to pre-built the GStreamer
987 # dependencies. When available, the .cerbero jobs will download this artifact
988 # in order to speed up the build.
991 # CONFIG: The name of the configuration file to use
992 # ARCH: The cerbero <os>_<cpu> (used in cache key)
994 # Produce an artifact with the dist/ and .cache along
995 # with the associated build-tools.
999 - if: '$CI_PROJECT_NAME == "cerbero"'
1001 - ./cerbero_setup.sh cerbero_deps_script
1004 # Cerbero Linux X86_64 build
1006 cerbero deps fedora x86_64:
1007 extends: '.cerbero deps'
1009 CONFIG: "linux.config"
1010 ARCH: "linux_x86_64"
1012 build cerbero fedora x86_64:
1015 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
1017 CONFIG: "linux.config"
1020 # Cerbero Android Universal build
1022 .cerbero cross-android universal:
1024 CONFIG: "cross-android-universal.cbc"
1025 ARCH: "android_universal"
1027 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1032 - "${CERBERO_HOME}/logs"
1035 cerbero deps cross-android universal:
1038 - '.cerbero cross-android universal'
1040 build cerbero cross-android universal:
1043 - '.cerbero cross-android universal'
1045 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1046 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1049 # Cerbero Cross Windows builds
1051 cerbero deps cross-windows x86:
1052 extends: '.cerbero deps'
1054 CONFIG: "cross-win32.cbc"
1057 build cerbero cross win32:
1060 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
1062 CONFIG: "cross-win32.cbc"
1063 CERBERO_RUN_WRAPPER: "wine"
1064 CERBERO_RUN_SUFFIX: ".exe"
1067 cerbero deps cross-windows x86_64:
1068 extends: '.cerbero deps'
1070 CONFIG: "cross-win64.cbc"
1071 ARCH: "mingw_x86_64"
1073 build cerbero cross win64:
1076 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
1078 CONFIG: "cross-win64.cbc"
1079 CERBERO_RUN_WRAPPER: "wine"
1080 CERBERO_RUN_SUFFIX: ".exe"
1083 # Build an Android App using the android binaries
1085 .cross-android universal examples:
1086 image: $ANDROID_IMAGE
1089 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
1090 GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal
1092 - mkdir -p ${EXAMPLES_HOME}/outputs
1093 - curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
1094 - chmod +x clone_manifest_ref.py
1095 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
1096 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
1097 - rm clone_manifest_ref.py
1099 # extract our binaries
1100 - rm -f gstreamer-1.0-android-universal-*-runtime.tar.*
1101 - mkdir ${GSTREAMER_ROOT_ANDROID}
1102 - time tar -C ${GSTREAMER_ROOT_ANDROID} -xf gstreamer-1.0-android-universal-*.tar.*
1104 # gst-examples - player
1105 - chmod +x ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew
1106 - ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/playback/player/android assembleDebug
1107 - cp ${EXAMPLES_HOME}/gst-examples/playback/player/android/app/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1109 # gst-examples - vulkan
1110 - chmod +x ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew
1111 - ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/vulkan/android assembleDebug
1112 - cp ${EXAMPLES_HOME}/gst-examples/vulkan/android/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1114 # gst-docs android tutorials
1115 - chmod +x ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew
1116 - ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android assembleDebug
1117 - cp ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/android-tutorial-*/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
1119 - rm -rf ${GSTREAMER_ROOT_ANDROID}
1120 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
1122 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1127 - "${EXAMPLES_HOME}/outputs"
1129 cross-android universal examples:
1130 extends: ".cross-android universal examples"
1132 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1133 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1135 - "build cerbero cross-android universal"
1137 cerbero cross-android universal examples:
1138 extends: ".cross-android universal examples"
1140 - if: '$CI_PROJECT_NAME == "cerbero"'
1142 - "cerbero deps cross-android universal"
1145 # Cerbero macOS X86_64 build
1147 .cerbero macos x86_64:
1149 ARCH: "darwin_x86_64"
1150 CONFIG: "osx-x86-64.cbc"
1151 CERBERO_PACKAGE_ARGS: ""
1153 CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
1154 CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
1158 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1163 - "${CERBERO_HOME}/logs"
1164 - "gstreamer-1.0-1.*.pkg"
1165 - "gstreamer-1.0-devel-1.*.pkg"
1167 cerbero deps macos x86_64:
1170 - '.cerbero macos x86_64'
1172 build cerbero macos x86_64:
1175 - '.cerbero macos x86_64'
1177 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1180 # Cerbero macOS Universal build
1182 .cerbero cross-macos universal:
1184 ARCH: "darwin_universal"
1185 CONFIG: "cross-macos-universal.cbc"
1186 CERBERO_PACKAGE_ARGS: ""
1188 CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
1192 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1197 - "${CERBERO_HOME}/logs"
1198 - "gstreamer-1.0-1.*.pkg"
1199 - "gstreamer-1.0-devel-1.*.pkg"
1201 cerbero deps cross-macos universal:
1204 - '.cerbero cross-macos universal'
1206 build cerbero cross-macos universal:
1209 - '.cerbero cross-macos universal'
1211 # We have build-tools that have fixed paths pointing to the upstream
1212 # repository. We need to point
1214 - mkdir -p "../../gstreamer"
1215 - ln -sf "$(pwd)" "../../gstreamer/cerbero"
1216 - mkdir -p "../../${CI_PROJECT_NAMESPACE}"
1217 - ln -sf "$(pwd)" "../../${CI_PROJECT_NAMESPACE}/cerbero"
1219 - ./cerbero_setup.sh cerbero_script
1221 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1226 .cerbero cross-ios universal:
1228 ARCH: "ios_universal"
1229 CONFIG: "cross-ios-universal.cbc"
1230 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
1231 CERBERO_PACKAGE_ARGS: ""
1233 CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
1237 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
1242 - "${CERBERO_HOME}/logs"
1243 - "gstreamer-1.0-*-ios-universal.pkg"
1245 cerbero deps cross-ios universal:
1248 - '.cerbero cross-ios universal'
1250 build cerbero cross-ios universal:
1253 - '.cerbero cross-ios universal'
1255 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1256 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1259 image: $FEDORA_DOCS_IMAGE
1261 - '.gst_build_ccache_vars'
1263 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-integration-testsuites|gst-plugins-rs|gst-python)$/'
1268 MESON_ARGS: *simple_build
1269 MESON_BUILDTYPE_ARGS: "-Ddoc=enabled"
1270 CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/"
1272 - pip3 install --upgrade hotdoc
1274 # FIXME: remove this once the docs image is updated
1275 - pip3 install -U meson==0.56.2
1278 - ./gst-uninstalled.py ninja -C build/ plugins_doc_caches
1280 python3 -c "import os, subprocess, sys
1281 subprojects = [os.environ['CI_PROJECT_NAME']]
1282 if subprojects[0] in ['gst-ci', 'gst-build']:
1283 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',]
1285 diffsdir = '../plugins-cache-diffs'
1286 os.makedirs(diffsdir, exist_ok=True)
1288 for subproject in subprojects:
1289 cwd = os.path.join('subprojects', subproject)
1291 subprocess.check_call(['git', 'diff', '--quiet'], cwd=cwd)
1292 except subprocess.CalledProcessError:
1293 diffname = os.path.join(diffsdir, '%s_cache.diff' % subproject)
1295 with open(diffname, 'w') as diff:
1296 subprocess.check_call(['git', 'diff'], stdout=diff, cwd=cwd)
1297 print('\033[91mYou have a diff in the %s documentation cache. Please update with:\033[0m' % subproject)
1298 print(' $ curl %s/%s | git apply -' % (os.environ['CI_ARTIFACTS_URL'], diffname.replace('../', '')))
1300 print('(note that it might take a few minutes for artefacts to be available on the server)\n')
1303 - ./gst-uninstalled.py hotdoc run --conf-file=build/subprojects/gst-docs/GStreamer-doc.json --fatal-warnings
1305 - mv gst-build/build/subprojects/gst-docs/GStreamer-doc/html documentation/
1311 - plugins-cache-diffs/
1314 # Build an iOS App using the iOS binaries
1316 .cross-ios universal examples:
1319 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
1320 # disable codesigning so we don't need developer identities on the CI
1323 CODE_SIGNING_REQUIRED="NO"
1324 CODE_SIGN_IDENTITY=""
1325 CODE_SIGNING_ALLOWED="NO"
1326 CODE_SIGN_ENTITLEMENTS=""
1328 # install the binaries
1329 - installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose
1331 - curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
1332 - chmod +x clone_manifest_ref.py
1333 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
1334 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
1335 - rm clone_manifest_ref.py
1337 # dump some useful information
1338 - xcodebuild -version
1339 - xcodebuild -showsdks
1341 # gst-docs ios tutorials
1342 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj
1343 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj ${XCODE_BUILD_ARGS}
1346 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj
1347 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj ${XCODE_BUILD_ARGS}
1349 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
1353 cross-ios universal examples:
1354 extends: ".cross-ios universal examples"
1356 - if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
1357 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
1359 - "build cerbero cross-ios universal"
1361 cerbero cross-ios universal examples:
1362 extends: ".cross-ios universal examples"
1364 - if: '$CI_PROJECT_NAME == "cerbero"'
1366 - "cerbero deps cross-ios universal"
1368 build gst-omx zynq fedora x86_64:
1369 extends: '.build fedora x86_64'
1371 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"
1373 - if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
1375 - git clone https://github.com/Xilinx/vcu-omx-il.git --branch=release-2020.1 ${CI_PROJECT_DIR}/vcu-omx-il
1377 build gst-omx tizonia fedora x86_64:
1378 extends: '.build fedora x86_64'
1380 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"
1381 PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:${CI_PROJECT_DIR}/tizonia-install/lib64/pkgconfig/
1383 - if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
1385 - git clone https://github.com/tizonia/tizonia-openmax-il --branch v0.20.2
1386 - cd tizonia-openmax-il
1387 - meson build -Dclients=false -Dplugins='' -Dplayer=false -Dprefix=${CI_PROJECT_DIR}/tizonia-install
1389 - ninja -C build install
1393 # Cerbero Native Windows builds
1395 .cerbero windows native:
1397 image: $CERBERO_WINDOWS_IMAGE
1401 - 'gstreamer-windows'
1406 CERBERO_HOST_DIR: "C:/cerbero"
1407 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v visualstudio -v nowerror"
1408 CERBERO_RUN_SUFFIX: ".exe"
1411 - $env:CI_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\', '/')
1412 - $env:CERBERO_SCRIPTS_PATH = "$env:CI_PROJECT_DIR/cerbero_setup.sh"
1413 - echo "Fetching $env:CERBERO_SCRIPT_URL"
1414 - Invoke-WebRequest -Uri $env:CERBERO_SCRIPT_URL -OutFile $env:CERBERO_SCRIPTS_PATH
1415 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_before_script"
1417 cerbero deps msvc x86_64:
1418 extends: ['.cerbero deps', '.cerbero windows native']
1420 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_deps_script"
1422 build cerbero msvc x86_64:
1423 extends: ['.cerbero', '.cerbero windows native']
1425 - C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_script"
1427 - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'