From 8d099361b9cc31f089cd04818020fb90ac4a1b7f Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Thu, 18 Sep 2025 16:43:46 -0700 Subject: [PATCH] ci: disable ccache by default --- .github/actions/microsoft-setup-toolchain/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/microsoft-setup-toolchain/action.yml b/.github/actions/microsoft-setup-toolchain/action.yml index e8e05e1c776533..5a8d61bc74123e 100644 --- a/.github/actions/microsoft-setup-toolchain/action.yml +++ b/.github/actions/microsoft-setup-toolchain/action.yml @@ -19,12 +19,16 @@ inputs: xcode-developer-dir: description: Set the path for the active Xcode developer directory default: "/Applications/Xcode_16.4.0.app" + enable-ccache: + description: Enable ccache for iOS/macOS/visionOS builds + default: "false" + runs: using: composite steps: - name: Set up Ccache id: setup-ccache - if: ${{ inputs.platform == 'ios' || inputs.platform == 'macos' || inputs.platform == 'visionos' }} + if: ${{ (inputs.platform == 'ios' || inputs.platform == 'macos' || inputs.platform == 'visionos') && inputs.enable-ccache == 'true' }} run: | podfile_lock="${{ inputs.project-root }}/${{ inputs.platform }}/Podfile.lock" if [[ -f $(git rev-parse --show-toplevel)/.ccache/ccache.conf ]] && [[ -f "$podfile_lock" ]]; then @@ -75,7 +79,7 @@ runs: sudo xcodebuild -runFirstLaunch shell: bash - name: Cache /.ccache - if: ${{ steps.setup-ccache.outputs.cache-key }} + if: ${{ inputs.enable-ccache == 'true' && steps.setup-ccache.outputs.cache-key }} uses: actions/cache@v4 with: path: .ccache