From d8a637573bf04e545e935c46b92cf11a8e6f06ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Roz=CC=87niata?= <56474758+krozniata@users.noreply.github.com> Date: Mon, 26 Oct 2026 12:51:24 +0100 Subject: [PATCH] ci(ios): stop CocoaPods job restoring the SwiftPM ccache --- .github/workflows/ios.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 0fffeedb..4bb12959 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -23,6 +23,9 @@ jobs: # Runner image updates touch clang even when it hasn't changed, so # compare its contents instead of its mtime. CCACHE_COMPILERCHECK: content + # Restore keys match by prefix, so neither variant's name may prefix the + # other's (`ccache-ios-` used to restore the SwiftPM cache). + CACHE_VARIANT: ${{ inputs.spm && 'spm' || 'pods' }} AGENT_DEVICE_RUNNER_PATHS: | ~/.agent-device/apple-runner/derived/ios-simulator/*/Build/Products/* ~/.agent-device/apple-runner/derived/ios-simulator/*/.agent-device-runner-cache.json @@ -54,8 +57,8 @@ jobs: uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: .ccache - key: ccache-ios${{ inputs.spm && '-spm' || '' }}-${{ github.run_id }}-${{ github.run_attempt }} - restore-keys: ccache-ios${{ inputs.spm && '-spm' || '' }}- + key: ccache-ios-${{ env.CACHE_VARIANT }}-${{ github.run_id }}-${{ github.run_attempt }} + restore-keys: ccache-ios-${{ env.CACHE_VARIANT }}- - name: Install example Pods if: ${{ !inputs.spm }}