From dbace645b3b685cba9e896140aa006ca46f9b42c Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Mon, 10 Nov 2025 16:29:13 +0000 Subject: [PATCH] CI: reduce ccache max size to 250mb (#2300) Reduce ccache size to 250mb to reduce churn across builds. Experimentally, 200mb are enough, leave a bit of headroom Also add options for cache housekeeping, and update ccache-action to the latest release --- .github/workflows/quick.yaml | 4 +++- .github/workflows/slow.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quick.yaml b/.github/workflows/quick.yaml index 06bd1c076f..af217e0542 100644 --- a/.github/workflows/quick.yaml +++ b/.github/workflows/quick.yaml @@ -156,10 +156,12 @@ jobs: uses: actions/checkout@v4 - name: Setup ccache - uses: hendrikmuhs/ccache-action@v1.2.17 + uses: hendrikmuhs/ccache-action@v1.2.19 with: verbose: 2 # default 0 key: ${{ matrix.os }}-${{ matrix.compiler.CC }}-${{ matrix.layer.nick }} + max-size: "250MB" + evict-old-files: "28d" - name: Run build on Linux run: ./test-builds.sh ${{ matrix.layer.name }} diff --git a/.github/workflows/slow.yaml b/.github/workflows/slow.yaml index bdc44bb965..da8cc3fbb5 100644 --- a/.github/workflows/slow.yaml +++ b/.github/workflows/slow.yaml @@ -67,10 +67,12 @@ jobs: uses: actions/checkout@v4 - name: Setup ccache - uses: hendrikmuhs/ccache-action@v1.2.17 + uses: hendrikmuhs/ccache-action@v1.2.19 with: verbose: 2 # default 0 key: ${{ matrix.os }}-${{ matrix.compiler.CC }}-${{ matrix.layer.nick }} + max-size: "250MB" + evict-old-files: "28d" - name: Run test-builds id: test-builds -- 2.47.3