Skip to content

Commit 8d3abbe

Browse files
committed
CI: only clone/fetch the parts of LLVM monorepo that we need
This ends up being *much* faster, noticeably speeding up these jobs.
1 parent 82277ae commit 8d3abbe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/libcxx-setup.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
set -e
44

55
# Checkout LLVM sources
6-
git clone --depth=1 --branch llvmorg-19.1.6 https://github.com/llvm/llvm-project.git llvm-project
6+
git clone --filter=blob:none --depth=1 --branch llvmorg-19.1.6 --no-checkout https://github.com/llvm/llvm-project.git llvm-project
7+
cd llvm-project
8+
git sparse-checkout set --cone
9+
git checkout llvmorg-19.1.6
10+
git sparse-checkout set cmake llvm/cmake runtimes libcxx libcxxabi
11+
cd ..
712

813
## Setup libc++ options
914
if [ -z "$BUILD_32_BITS" ]; then
@@ -20,6 +25,9 @@ cmake -DCMAKE_C_COMPILER=${CC} \
2025
-DLLVM_USE_SANITIZER=${LIBCXX_SANITIZER} \
2126
-DLLVM_BUILD_32_BITS=${BUILD_32_BITS} \
2227
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
28+
-DLLVM_INCLUDE_TESTS=OFF \
29+
-DLIBCXX_INCLUDE_TESTS=OFF \
30+
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
2331
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
2432
-G "Unix Makefiles" \
2533
../llvm-project/runtimes/

0 commit comments

Comments
 (0)