Skip to content

Commit 0c767f2

Browse files
committed
CI: only clone/fetch the parts of LLVM monorepo that we need
1 parent 82277ae commit 0c767f2

11 files changed

+9
-515
lines changed

.github/libcxx-setup.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/usr/bin/env bash
22

3-
set -e
3+
set -ex
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,8 @@ 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+
-DLIBCXX_INCLUDE_TESTS=OFF \
29+
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
2330
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
2431
-G "Unix Makefiles" \
2532
../llvm-project/runtimes/

.github/workflows/bazel.yml

-34
This file was deleted.

.github/workflows/build-and-test-min-cmake.yml

-46
This file was deleted.

.github/workflows/build-and-test-perfcounters.yml

-51
This file was deleted.

.github/workflows/build-and-test.yml

-144
This file was deleted.

.github/workflows/clang-format-lint.yml

-16
This file was deleted.

.github/workflows/clang-tidy-lint.yml

-38
This file was deleted.

.github/workflows/doxygen.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)