-
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6685659
Creating symlinks instead of modifying PATH
kraenhansen b45a730
Don't create a symlink on Windows
kraenhansen a43a39d
Refactored PR workflow into individual prebuild-specific jobs
kraenhansen 46a5010
Upgrading prebuild to get fix for Windows spawning
kraenhansen 3e5d5dd
Minor fixes to the workflow
kraenhansen b7b9e58
Upgrading cocoapods version
kraenhansen 81fa407
Comitting changes to Podfile.lock
kraenhansen 2b17dad
Running pod-install with --verbose on CI
kraenhansen b451fcd
Trying the macos-latest-large runner and disabling Pods cache
kraenhansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,16 +182,7 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-${{ matrix.os }}-${{ matrix.arch }} | ||
max-size: '2.0G' | ||
|
||
- name: Prepend ccache executables to the PATH | ||
if: ${{ runner.os != 'Windows' }} | ||
run: | | ||
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | ||
|
||
# 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" | ||
Comment on lines
-191
to
-194
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
create-symlink: true | ||
|
||
- name: Install dependencies | ||
# Ignoring scripts to prevent a prebuilt from getting fetched / built | ||
|
@@ -265,10 +256,8 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-${{ matrix.platform }} | ||
max-size: '2.0G' | ||
# On 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" | ||
create-symlink: true | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build archive | ||
|
@@ -351,11 +340,7 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-android-${{ matrix.architecture }} | ||
max-size: '2.0G' | ||
|
||
# On 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" | ||
create-symlink: true | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
|
@@ -495,12 +480,7 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-${{ matrix.variant.os }}-${{ matrix.variant.arch }} | ||
max-size: '2.0G' | ||
|
||
# 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 | ||
if: ${{ matrix.variant.environment == 'react-native-test-app' }} | ||
run: ccache --set-config="compiler_check=content" | ||
create-symlink: true | ||
|
||
# Hermes doesn't work with Cocoapods 1.15.0 | ||
# https://forums.developer.apple.com/forums/thread/745518 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.