From 56ed917afc638e2dd11f48e96c4f0d26038d52b4 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Mon, 5 Jan 2026 11:59:15 -0500 Subject: [PATCH] perf(ci): only save ccache on main branch prevents LRU eviction thrashing of caches since we are near the limit on useful caches for a single CI run --- .github/workflows/tests_e2e_ios.yml | 1 + .github/workflows/tests_e2e_other.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/tests_e2e_ios.yml b/.github/workflows/tests_e2e_ios.yml index 0462e80bd3..71e5088ad7 100644 --- a/.github/workflows/tests_e2e_ios.yml +++ b/.github/workflows/tests_e2e_ios.yml @@ -163,6 +163,7 @@ jobs: name: Xcode Compile Cache with: key: ${{ runner.os }}-${{ matrix.buildmode }}-ios-v3 # makes a unique key w/related restore key internally + save: "${{ github.ref == 'refs/heads/main' }}" create-symlink: true max-size: 1500M diff --git a/.github/workflows/tests_e2e_other.yml b/.github/workflows/tests_e2e_other.yml index 98a41322f3..c75d880b0e 100644 --- a/.github/workflows/tests_e2e_other.yml +++ b/.github/workflows/tests_e2e_other.yml @@ -148,6 +148,7 @@ jobs: name: Xcode Compile Cache with: key: ${{ runner.os }}-macos-v2 + save: "${{ github.ref == 'refs/heads/main' }}" create-symlink: true max-size: 1500M