[llvm] [github] pre-cache llvm-project in Linux CI Docker images (PR #133137)

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 08:29:29 PDT 2025


================
@@ -103,3 +103,14 @@ RUN mkdir actions-runner && \
     tar xzf ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz && \
     rm ./actions-runner-linux-x64-$GITHUB_RUNNER_VERSION.tar.gz
 
+# Pre-cache llvm-project in these images; this works with the premerge action
+# to speed up runs; cloning LLVM fresh takes >1min otherwise.
+#
+# A local experiment showed an explicit `git gc --aggressive` reduced this
+# layer's size by 20% (~800MB). Disable GC'ing afterward, so we don't waste time
----------------
gburgessiv wrote:

Good point. Savings was 800MB; this layer is 3.29GB on my most recent build. Fixed the wording up as requested - PTAL

https://github.com/llvm/llvm-project/pull/133137


More information about the llvm-commits mailing list