From df3756e6dc9268ebda63c317360695d1722e2efe Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 18 Jun 2026 12:08:54 +0200 Subject: [PATCH] ci: fix perfetto download in `make-git-archive` nightly job Fixes: aabf7b9a94ceb62192d5 ("perfetto: v56.1 update") Part-of: --- .gitlab-ci/build/gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/build/gitlab-ci.yml b/.gitlab-ci/build/gitlab-ci.yml index 073f91ac603..d89b9817163 100644 --- a/.gitlab-ci/build/gitlab-ci.yml +++ b/.gitlab-ci/build/gitlab-ci.yml @@ -13,7 +13,13 @@ make-git-archive: # Compactify the .git directory - git gc --aggressive # Download & cache the perfetto subproject as well. - - rm -rf subprojects/perfetto ; mkdir -p subprojects/perfetto && curl --fail --location https://github.com/google/perfetto/archive/$(grep 'revision =' subprojects/perfetto.wrap | cut -d ' ' -f3).tar.gz | tar zxf - --strip-components=1 -C subprojects/perfetto + - | + perfetto_sdk_dir=$(grep -Po '^directory = \K.*' subprojects/perfetto-sdk.wrap) + rm -rf subprojects/"$perfetto_sdk_dir" + mkdir -p subprojects/"$perfetto_sdk_dir" + curl --fail --location $(grep -Po '^source_url = \K.*' subprojects/perfetto-sdk.wrap) --output perfetto-sdk.zip + unzip perfetto-sdk.zip -d subprojects/"$perfetto_sdk_dir" + rm perfetto-sdk.zip # compress the current folder - tar -cvzf ../$CI_PROJECT_NAME.tar.gz .