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

Fix iOS build cache reuse #300

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Fix iOS build cache reuse #300

merged 1 commit into from
Apr 12, 2024

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Apr 12, 2024

Details

This PR changes the cache key used for restoring iOS dependencies (Pods) and build artifacts (DerivedData).

Currently, the cache key includes a hash calculated from example/ios/Podfile.lock. Unfortunately, this file changes very frequently as we automatically bump patch version after each merged PR which results in updating the caches on each PR which is time-consuming.

Most likely, the only scenario where we should drop the caches is when we bump react-native version in our example app and that's exactly what this PR does.

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw requested a review from BartoszGrajdek April 12, 2024 10:29
Copy link
Collaborator

@j-piasecki j-piasecki left a comment

Choose a reason for hiding this comment

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

🤯

Copy link
Collaborator

@BartoszGrajdek BartoszGrajdek left a comment

Choose a reason for hiding this comment

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

👍🏻

@tomekzaw tomekzaw merged commit 247b0bf into main Apr 12, 2024
4 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/improve-ios-cache branch April 12, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants