-
Notifications
You must be signed in to change notification settings - Fork 79
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
Enable build parallelism by default. #4048
Enable build parallelism by default. #4048
Conversation
This also paves the way for larger CI runner support.
if (!maxParallelForks) { | ||
maxParallelForks = 4 | ||
} |
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 logic never worked; the inner code is never executed.
.github/workflows/build-ci.yml
Outdated
@@ -32,6 +32,8 @@ jobs: | |||
run: | | |||
cat .github/env/${{ runner.os }}/gradle.properties >> gradle.properties | |||
echo >> gradle.properties | |||
.github/scripts/print-gradle-workers-max.sh >> gradle.properties | |||
echo >> gradle.properties |
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 block below is almost the same. Too hard to factor the common parts out?
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've taken your advice and consolidated it down to a single script.
This also paves the way for larger CI runner support.
Note: I've been running w/
org.gradle.parallel=true
for at least a year without ill-effect. I think some other developers have been as well.