Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enables Ccache for our RNTA on iOS #6712

Merged
merged 6 commits into from
Jun 11, 2024
Merged

Conversation

kraenhansen
Copy link
Member

What, How & Why?

This uses facebook/react-native#42051 to enabled the use of Ccache when running the React Native Test App tests on iOS.

@kraenhansen kraenhansen added no-changelog no-jira-ticket Skip checking the PR title for Jira reference labels Jun 10, 2024
@kraenhansen kraenhansen self-assigned this Jun 10, 2024
@cla-bot cla-bot bot added the cla: yes label Jun 10, 2024
@kraenhansen kraenhansen requested review from elle-j and removed request for elle-j June 10, 2024 13:22
@@ -2,6 +2,8 @@ require_relative '../../../../node_modules/react-native-test-app/test_app'

workspace 'RealmTests.xcworkspace'

ENV["USE_CCACHE"] = Pod::Executable::which('ccache') ? "1" : "0"
Copy link
Member Author

@kraenhansen kraenhansen Jun 10, 2024

Choose a reason for hiding this comment

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

This is using Pod::Executable::which:

Returns the absolute path to the binary with the given name on the current PATH, or nil if none is found.

@kraenhansen
Copy link
Member Author

For some reason the "Post ccache" step doesn't seem to report ccache being used 🤔
But, I'm merging this for now since I've verified this works locally and want to depend on it from #6650.

@kraenhansen kraenhansen merged commit 910bb2e into main Jun 11, 2024
27 checks passed
@kraenhansen kraenhansen deleted the kh/ccache-for-ios-test-app branch June 11, 2024 13:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants