log file path

This commit is contained in:
Frostebite 2023-05-14 21:00:49 +01:00
parent d3b4f28e32
commit d0934cbc2a
4 changed files with 6 additions and 11 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -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`);
}
}

View File

@ -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}`;
}
}