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 .