Skip to content

Commit 3fa3eab

Browse files
committed
chore(ci): optimize ccache config - increase max_size to 5G and remove redundant settings in build_paimon.sh
1 parent 3daeaea commit 3fa3eab

6 files changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/build_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
ccache-clang-release-${{ runner.os }}-
5353
- name: Configure ccache
5454
run: |
55-
ccache --set-config=max_size=2G
55+
ccache --set-config=max_size=5G
5656
ccache --set-config=compression=true
5757
ccache --set-config=compression_level=6
5858
ccache -z
@@ -87,7 +87,7 @@ jobs:
8787
ccache-gcc-release-${{ runner.os }}-
8888
- name: Configure ccache
8989
run: |
90-
ccache --set-config=max_size=2G
90+
ccache --set-config=max_size=5G
9191
ccache --set-config=compression=true
9292
ccache --set-config=compression_level=6
9393
ccache -z

.github/workflows/clang_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
ccache-clang-test-${{ runner.os }}-
5454
- name: Configure ccache
5555
run: |
56-
ccache --set-config=max_size=2G
56+
ccache --set-config=max_size=5G
5757
ccache --set-config=compression=true
5858
ccache --set-config=compression_level=6
5959
ccache -z

.github/workflows/gcc8_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
ccache-gcc8-test-${{ runner.os }}-
7070
- name: Configure ccache
7171
run: |
72-
ccache --set-config=max_size=2G
72+
ccache --set-config=max_size=5G
7373
ccache --set-config=compression=true
7474
ccache --set-config=compression_level=6
7575
ccache -z

.github/workflows/gcc_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
ccache-gcc-test-${{ runner.os }}-
5353
- name: Configure ccache
5454
run: |
55-
ccache --set-config=max_size=2G
55+
ccache --set-config=max_size=5G
5656
ccache --set-config=compression=true
5757
ccache --set-config=compression_level=6
5858
ccache -z

.github/workflows/test_with_sanitizer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
ccache-sanitizer-${{ runner.os }}-
5353
- name: Configure ccache
5454
run: |
55-
ccache --set-config=max_size=2G
55+
ccache --set-config=max_size=5G
5656
ccache --set-config=compression=true
5757
ccache --set-config=compression_level=6
5858
ccache -z

ci/scripts/build_paimon.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,10 @@ check_clang_tidy=${3:-false}
2222
build_type=${4:-Debug}
2323
build_dir=${1}/build
2424

25-
# Configure ccache if available
25+
# Display ccache status if available
2626
if command -v ccache &> /dev/null; then
2727
echo "=== ccache found: $(ccache --version | head -1) ==="
28-
export CCACHE_DIR="${CCACHE_DIR:-${HOME}/.ccache}"
29-
export CCACHE_MAXSIZE="${CCACHE_MAXSIZE:-2G}"
30-
export CCACHE_COMPRESS=true
31-
export CCACHE_COMPRESSLEVEL=6
32-
mkdir -p "${CCACHE_DIR}"
33-
echo "ccache directory: ${CCACHE_DIR}"
34-
echo "ccache max size: ${CCACHE_MAXSIZE}"
35-
ccache -s | head -5
28+
ccache -p | grep -E "cache_dir|max_size|compression" || true
3629
ccache -z # Reset statistics for this build
3730
else
3831
echo "=== ccache not found, compiling without cache acceleration ==="

0 commit comments

Comments
 (0)