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

Update package-unit-tests.yml to add ccache and ninja #5837

Merged
merged 1 commit into from
May 31, 2023

Conversation

kraenhansen
Copy link
Member

@kraenhansen kraenhansen commented May 23, 2023

What, How & Why?

This adds ccache and Ninja to the PR unit test workflow.

Copy link
Contributor

@RedBeard0531 RedBeard0531 left a comment

Choose a reason for hiding this comment

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

Once it finishes, try rerunning the unit test build and make sure it is using the cache.

@@ -34,6 +34,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
# ninja-build is used by default if available and results in faster build times
- name: Install ninja
run: sudo apt-get install ninja-build
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not need ccache? I saw it was installed in the other script.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was my assumption that it wasn't needed and the ccache-action would bring it, which it does seem to do.

@RedBeard0531
Copy link
Contributor

Once it finishes, try rerunning the unit test build and make sure it is using the cache.

it was already finished, so while I was here I just clicked rerun.

@RedBeard0531
Copy link
Contributor

Once it finishes, try rerunning the unit test build and make sure it is using the cache.

it was already finished, so while I was here I just clicked rerun.

OK, cache clearly is being used.

👍

@kraenhansen kraenhansen marked this pull request as ready for review May 31, 2023 08:07
@kraenhansen kraenhansen merged commit 7a6a769 into main May 31, 2023
@kraenhansen kraenhansen deleted the kh/ccache-ninja-unit-tests branch May 31, 2023 08:07
papafe added a commit that referenced this pull request Jun 7, 2023
* main:
  Fix User.callFunction JSDoc to match the v11+ API (#5768)
  Add Flexible Sync subscribe/unsubscribe APIs (#5772)
  Fix warning for deprecated namespace setting method in Android (#5862)
  Update install-test-react-native.yml (#5848)
  Update package-unit-tests.yml to add ccache and ninja (#5837)
  Enable cleartext traffic in android test app to make tests work in release builds

# Conflicts:
#	CHANGELOG.md
papafe added a commit that referenced this pull request Jun 7, 2023
* fp/update-core-13.13:
  Corrected changelog
  Updated changelog
  Fix User.callFunction JSDoc to match the v11+ API (#5768)
  Add Flexible Sync subscribe/unsubscribe APIs (#5772)
  Fix warning for deprecated namespace setting method in Android (#5862)
  Update install-test-react-native.yml (#5848)
  Update package-unit-tests.yml to add ccache and ninja (#5837)
  Enable cleartext traffic in android test app to make tests work in release builds
  Removed unused
  Updated changelog

# Conflicts:
#	packages/realm/bindgen/vendor/realm-core
#	packages/realm/src/index.ts
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants