@@ -35,7 +35,7 @@ echo "==> Setting up BoringSSL..."
3535
3636if [ ! -d " boringssl" ]; then
3737 echo " Cloning BoringSSL..."
38- git clone https://boringssl.googlesource.com/boringssl
38+ git clone --depth 1 https://boringssl.googlesource.com/boringssl
3939fi
4040
4141cd boringssl
@@ -64,6 +64,13 @@ if [ ! -f "build/ssl/libssl.a" ]; then
6464 make -j$( nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 4)
6565
6666 echo " ✓ BoringSSL built successfully"
67+
68+ # Clean up .git directory to save cache space
69+ cd " $VENDOR_DIR /boringssl"
70+ if [ -d " .git" ]; then
71+ echo " Cleaning up .git directory to save cache space..."
72+ rm -rf .git
73+ fi
6774else
6875 echo " ✓ BoringSSL already built"
6976fi
@@ -79,7 +86,7 @@ if [ "$OS" = "Linux" ]; then
7986
8087 if [ ! -d " liburing" ]; then
8188 echo " Cloning liburing..."
82- git clone https://github.com/axboe/liburing.git
89+ git clone --depth 1 https://github.com/axboe/liburing.git
8390 fi
8491
8592 cd liburing
@@ -92,6 +99,13 @@ if [ "$OS" = "Linux" ]; then
9299 make install
93100
94101 echo " ✓ liburing built successfully"
102+
103+ # Clean up .git directory to save cache space
104+ cd " $VENDOR_DIR /liburing"
105+ if [ -d " .git" ]; then
106+ echo " Cleaning up .git directory to save cache space..."
107+ rm -rf .git
108+ fi
95109 else
96110 echo " ✓ liburing already built"
97111 fi
0 commit comments