mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 01:38:23 +02:00
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:
parent
a4d9204543
commit
df3756e6dc
1 changed files with 7 additions and 1 deletions
|
|
@ -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 .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue