ci: fix perfetto download in make-git-archive nightly job

Fixes: aabf7b9a94 ("perfetto: v56.1 update")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42314>
This commit is contained in:
Eric Engestrom 2026-06-18 12:08:54 +02:00 committed by Marge Bot
parent a4d9204543
commit df3756e6dc

View file

@ -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 .