diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e11b6e64bf92b5a7c5d481b01ac6e419ee4b2136..b59df8e130637f1900e0766da0f64a1b9502813e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,8 +4,8 @@ variables: GET_SOURCES_ATTEMPTS: 3 BST_STRICT: '--no-strict' BST_TRACK_TAGS: 'false' - BST_NO_PUSH: "bst $BST_STRICT --config .gitlab-ci/buildstream-nopush.conf --log-file logs/build.log --colors" - BST: "bst $BST_STRICT --config .gitlab-ci/buildstream.conf --log-file logs/build.log --colors" + BST_NO_PUSH: "bst $BST_STRICT --config ${CI_PROJECT_DIR}/.gitlab-ci/buildstream-nopush.conf --log-file ${CI_PROJECT_DIR}/logs/build.log --colors" + BST: "bst $BST_STRICT --config ${CI_PROJECT_DIR}/.gitlab-ci/buildstream.conf --log-file ${CI_PROJECT_DIR}/logs/build.log --colors" FLATPAK_BRANCH: master stages: @@ -24,6 +24,9 @@ default: - echo "$GITLAB_CAS_PUSH_CERT" > client.crt - echo "$GITLAB_CAS_PUSH_KEY" > client.key + - git clone https://gitlab.com/freedesktop-sdk/openh264-extension.git + - git -C openh264-extension checkout openh264-2.0.0-5-0-g398990ce27764214ed0e1586177f1b2114de7532 + # # Templates shared by multiple jobs # @@ -36,6 +39,7 @@ default: interruptible: true script: - TARGETS=(core.bst flatpak-runtimes.bst flatpak-platform-extensions.bst flatpak/platform-manifest.bst flatpak/sdk-manifest.bst) + - H264_TARGETS=() - | case "${ARCH}" in @@ -44,11 +48,17 @@ default: ;; x86_64) TARGETS+=(vm/repo.bst vm/repo-devel.bst) - TARGETS+=(openh264-extension.bst:flatpak-repo.bst) + H264_TARGETS+=(flatpak-repo.bst) ;; esac - ${BST} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build "${TARGETS[@]}" + - | + if [ "${#H264_TARGETS[@]}" -gt 0 ]; then + pushd openh264-extension + ${BST} --max-jobs $(( $(nproc) / 4 )) build "${H264_TARGETS[@]}" + popd + fi # Store artifacts so we can inspect build failures artifacts: @@ -199,7 +209,7 @@ generate-deploy-config: FLAT_MANAGER_REPO: '$FLAT_MANAGER_REPO' TARGETS: flatpak-runtimes.bst TARGETS_nightly: flatpak-platform-extensions.bst - TARGETS_nightly_x86_64: openh264-extension.bst:flatpak-repo.bst + TARGETS_nightly_x86_64: openh264-extension+flatpak-repo.bst ENVIRONMENT_NAME: '$ENVIRONMENT_NAME' END diff --git a/.gitlab-ci/flat-manager.yml b/.gitlab-ci/flat-manager.yml index 24cc676367b69362dea3dcc67ac96d736e0c1326..97f295eeb36633d535db781d7cc9e7213127e24b 100644 --- a/.gitlab-ci/flat-manager.yml +++ b/.gitlab-ci/flat-manager.yml @@ -28,10 +28,23 @@ default: - ostree init --repo repo/ --mode archive - | + REPO_PATH="${PWD}/repo/" for target in $TARGETS; do - $BST -o arch $ARCH checkout --hardlinks $target checkout-repo/ - ostree pull-local --repo repo/ checkout-repo/ + case "${target}" in + *+*) + dir="${target%+*}" + real_target="${target#*+}" + ;; + *) + dir=. + real_target="${target}" + ;; + esac + pushd "${dir}" + $BST -o arch $ARCH checkout --hardlinks "${real_target}" checkout-repo/ + ostree pull-local --repo "${REPO_PATH}" checkout-repo/ rm -rf checkout-repo/ + popd done - ostree fsck --repo repo/ --all diff --git a/elements/openh264-extension.bst b/elements/openh264-extension.bst deleted file mode 100644 index fc287ced121d06979c062e5cd82eee89cc70aa15..0000000000000000000000000000000000000000 --- a/elements/openh264-extension.bst +++ /dev/null @@ -1,10 +0,0 @@ -kind: junction - -sources: -- kind: git_tag - url: https://gitlab.com/freedesktop-sdk/openh264-extension.git - track: master - -config: - options: - release_kind: stable diff --git a/junction.refs b/junction.refs index 436294efdff378514a7c0813e170d34409f3f395..446886cff4680e7c303d8cf6895a249df060118d 100644 --- a/junction.refs +++ b/junction.refs @@ -2,5 +2,3 @@ projects: gnome: freedesktop-sdk.bst: - ref: freedesktop-sdk-20.08.11-0-g1cb7886b948a9f5c58475a917db2c816774e0934 - openh264-extension.bst: - - ref: openh264-2.0.0-4-0-g7191bc88fbeed3ac842543706f856cb6dde99bc9