diff --git a/dist/index.js b/dist/index.js index 18831b28..f74e324f 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 819eb419..b92b957e 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/remote-client/remote-client-logger.ts b/src/model/cloud-runner/remote-client/remote-client-logger.ts index 0726c968..44d8f251 100644 --- a/src/model/cloud-runner/remote-client/remote-client-logger.ts +++ b/src/model/cloud-runner/remote-client/remote-client-logger.ts @@ -28,7 +28,7 @@ export class RemoteClientLogger { public static appendToFile(message: string) { if (CloudRunner.isCloudRunnerEnvironment) { - fs.appendFileSync(RemoteClientLogger.LogFilePath, message); + fs.appendFileSync(RemoteClientLogger.LogFilePath, `${message}\n`); } } diff --git a/src/model/cloud-runner/workflows/build-automation-workflow.ts b/src/model/cloud-runner/workflows/build-automation-workflow.ts index 8a41d018..5fafddfb 100644 --- a/src/model/cloud-runner/workflows/build-automation-workflow.ts +++ b/src/model/cloud-runner/workflows/build-automation-workflow.ts @@ -69,9 +69,12 @@ export class BuildAutomationWorkflow implements WorkflowInterface { export GITHUB_WORKSPACE="${CloudRunnerFolders.ToLinuxFolder(CloudRunnerFolders.repoPathAbsolute)}" df -H /data/ ${BuildAutomationWorkflow.setupCommands(builderPath)} + echo "log start" > /home/job-log.txt + node ${builderPath} -m remote-cli-pre-build ${setupHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '} ${buildHooks.filter((x) => x.hook.includes(`before`)).map((x) => x.commands) || ' '} - ${BuildAutomationWorkflow.BuildCommands(builderPath)} + node ${builderPath} -m remote-cli-build + node ${builderPath} -m remote-cli-post-build ${buildHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}`; } @@ -91,14 +94,6 @@ export class BuildAutomationWorkflow implements WorkflowInterface { }; else ${commands} ; fi`; return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 -${cloneBuilderCommands} -echo "log start" > /home/job-log.txt -node ${builderPath} -m remote-cli-pre-build`; - } - - private static BuildCommands(builderPath: string) { - return `echo "game ci cloud runner initalized" - node ${builderPath} -m remote-cli-build - node ${builderPath} -m remote-cli-post-build`; +${cloneBuilderCommands}`; } }