-
Notifications
You must be signed in to change notification settings - Fork 585
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
Conversation
# 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" |
There was a problem hiding this comment.
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.
- name: Prepend ccache executables to the PATH | ||
if: ${{ runner.os != 'Windows' }} | ||
run: | | ||
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH |
There was a problem hiding this comment.
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.
I included this in #6746 |
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).