ci: add perfetto into mesa git-cache
authorDavid Heidelberg <david.heidelberg@collabora.com>
Tue, 13 Jun 2023 20:40:21 +0000 (22:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Aug 2023 16:13:05 +0000 (16:13 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8821

Fixes: 8aff2281276c ("ci: Enable building the testing drivers with perfetto.")
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23611>

.gitlab-ci.yml

index d370a40..dee471b 100644 (file)
@@ -226,6 +226,8 @@ make git archive:
   script:
     # Compactify the .git directory
     - git gc --aggressive
+    # Download & cache the perfetto subproject as well.
+    - rm -rf subprojects/perfetto ; mkdir -p subprojects/perfetto && curl https://android.googlesource.com/platform/external/perfetto/+archive/$(grep 'revision =' subprojects/perfetto.wrap | cut -d ' ' -f3).tar.gz | tar zxf - -C subprojects/perfetto
     # compress the current folder
     - tar -cvzf ../$CI_PROJECT_NAME.tar.gz .