Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/actions/microsoft-setup-toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ 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:
Expand Down Expand Up @@ -49,7 +53,7 @@ runs:
shell: bash
- 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' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint job is still failing and this path does not run unless you specify platform, which the lint job does not.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. Looks like my assumption was false. I'll mark as a draft meanwhile

run: |
podfile_lock="${{ inputs.project-root }}/${{ inputs.platform }}/Podfile.lock"
if [[ -f $(git rev-parse --show-toplevel)/.ccache/ccache.conf ]] && [[ -f "$podfile_lock" ]]; then
Expand Down Expand Up @@ -100,7 +104,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
Expand Down
Loading