-
Notifications
You must be signed in to change notification settings - Fork 127
Added build source to user agent string. #480
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
Conversation
This allows the library to determine whether the library was built on github or not.
76f999b to
b4c9de7
Compare
scripts/gha/build_desktop.py
Outdated
| # workaround, absl doesn't build without tests enabled | ||
| cmd.append('-DBUILD_TESTING=off') | ||
| # When building from GitHub Actions, this should always be set. | ||
| cmd.append('-DFIREBASE_GITHUB_ACTION_BUILD=ON') |
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.
This shouldn't be hard coded here. Our build scripts are run locally by the team and so local builds will be reported as GHA builds. Instead create a runtime flag on build_desktop.py that appends this -D command, and then alter .github/workflows/desltop.yml and .github/workflows/cpp-packaging.yml to add a --gha_build flag (or something) when the workflow invokes build_desktop.py
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.
I think I made the changes you wanted. Take a look and make sure I set it up right.
❌ Integration test FAILEDRequested by @alexames on commit d682fd9
|
This allows the library to determine whether the library was built on
github or not.