Skip to content

Commit 615b876

Browse files
committed
chore: fix for mac
1 parent 4ff8db0 commit 615b876

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/_test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,9 @@ jobs:
5959
id: cache-vendor
6060
uses: actions/cache@v4
6161
with:
62-
path: |
63-
vendor/boringssl/build
64-
vendor/liburing/install
65-
vendor/liburing/src
66-
vendor/nghttp2/install
67-
vendor/nghttp2/lib/.libs
68-
key: vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-v2
62+
path: vendor
63+
key: vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-v3
6964
restore-keys: |
70-
vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-
7165
vendor-${{ runner.os }}-
7266
7367
- name: Setup vendor dependencies

scripts/setup_vendors.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo "==> Setting up BoringSSL..."
3535

3636
if [ ! -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
3939
fi
4040

4141
cd 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
6774
else
6875
echo "✓ BoringSSL already built"
6976
fi
@@ -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

Comments
 (0)