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

Creating symlinks for ccache on CI instead of modifying PATH #6742

Closed
wants to merge 9 commits into from

Conversation

kraenhansen
Copy link
Member

What, How & Why?

I hope this will help CI use ccache more (it seems the integration test job for RN iOS isn't hitting caches at all).

@kraenhansen kraenhansen added T-Internal no-changelog no-jira-ticket Skip checking the PR title for Jira reference labels Jun 20, 2024
@kraenhansen kraenhansen self-assigned this Jun 20, 2024
@cla-bot cla-bot bot added the cla: yes label Jun 20, 2024
Comment on lines -191 to -194
# in CI file timestamps change with every run so instead rely on file content hashing
# https://reactnative.dev/docs/build-speed#using-this-approach-on-a-ci
- name: Configure ccache
run: ccache --set-config="compiler_check=content"
Copy link
Member Author

Choose a reason for hiding this comment

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

As per hendrikmuhs/ccache-action#147 this is already set by the action on macOS.

Comment on lines -186 to -189
- name: Prepend ccache executables to the PATH
if: ${{ runner.os != 'Windows' }}
run: |
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
Copy link
Member Author

Choose a reason for hiding this comment

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

The action will create symlinks in /usr/local/bin, which is why we no longer need to modify the path.

@kraenhansen
Copy link
Member Author

I included this in #6746

@kraenhansen kraenhansen deleted the kh/create-ccache-symlinks branch June 24, 2024 07:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 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 T-Internal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant