]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CI: reduce ccache max size to 250mb (#2300)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Mon, 10 Nov 2025 16:29:13 +0000 (16:29 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 11 Nov 2025 19:36:12 +0000 (19:36 +0000)
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
.github/workflows/slow.yaml

index 06bd1c076fa6abbb1dd24b84d98d9676c639ea1a..af217e0542d3bfd2480fabb6f03e234dcb35e865 100644 (file)
@@ -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 }}
index bdc44bb965e251c357f826e2fbc077873bd5a1b6..da8cc3fbb5cd08fc9b4cba8095c111477ab085fd 100644 (file)
@@ -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