mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-26 01:56:18 +08:00
Allow daemons to run across workflow steps
Now that we are stopping all Gradle daemons in the post-job action, we can allow daemon processes to be re-used across steps in a workflow job. Fixes #113
This commit is contained in:
parent
aea6ddad5b
commit
52ebf2721a
@ -166,9 +166,6 @@ export class GradleStateCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private initializeGradleUserHome(gradleUserHome: string, initScriptsDir: string): void {
|
private initializeGradleUserHome(gradleUserHome: string, initScriptsDir: string): void {
|
||||||
const propertiesFile = path.resolve(gradleUserHome, 'gradle.properties')
|
|
||||||
fs.appendFileSync(propertiesFile, 'org.gradle.daemon=false')
|
|
||||||
|
|
||||||
const initScriptFilenames = ['build-result-capture.init.gradle', 'build-result-capture-service.plugin.groovy']
|
const initScriptFilenames = ['build-result-capture.init.gradle', 'build-result-capture-service.plugin.groovy']
|
||||||
for (const initScriptFilename of initScriptFilenames) {
|
for (const initScriptFilename of initScriptFilenames) {
|
||||||
const initScriptContent = this.readResourceAsString(initScriptFilename)
|
const initScriptContent = this.readResourceAsString(initScriptFilename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user