From 697458b56ac4ed3faddbb8627001372ac4df3653 Mon Sep 17 00:00:00 2001 From: Christopher Horrell Date: Tue, 17 Feb 2026 10:14:36 -0500 Subject: [PATCH] Optimize ccache configuration for faster Node.js builds - Increase ccache max size from default to 10GB - Enable aggressive hash matching with hash_dir=false - Configure sloppiness settings for improved cache hit rates - Display cache configuration for debugging purposes These settings reduce cache misses and improve build performance for Node.js static compilation. --- .github/workflows/dockerimage.yml | 7 +++++++ .github/workflows/update-current-image.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 7ff2054..806d705 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -36,6 +36,13 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2 with: key: ${{ matrix.os }}-${{ matrix.platform }} + max-size: 10G + + - name: Configure ccache + run: | + ccache --set-config=sloppiness=time_macros,locale,include_file_ctime,include_file_mtime + ccache --set-config=hash_dir=false + ccache -p - name: Get latest node version run: echo "LATEST_VERSION=$(curl -fsSLo- --compressed https://nodejs.org/dist/index.json | jq '.[].version' | tr -d '"' | tr -d 'v' | head -1)" >> $GITHUB_ENV diff --git a/.github/workflows/update-current-image.yml b/.github/workflows/update-current-image.yml index 61e9a7e..480f15a 100644 --- a/.github/workflows/update-current-image.yml +++ b/.github/workflows/update-current-image.yml @@ -65,6 +65,13 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2 with: key: ${{ matrix.os }}-${{ matrix.platform }} + max-size: 10G + + - name: Configure ccache + run: | + ccache --set-config=sloppiness=time_macros,locale,include_file_ctime,include_file_mtime + ccache --set-config=hash_dir=false + ccache -p - name: Show NODE_VERSION run: echo $NODE_VERION