mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
log file path
This commit is contained in:
parent
d3b4f28e32
commit
d0934cbc2a
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -28,7 +28,7 @@ export class RemoteClientLogger {
|
|||||||
|
|
||||||
public static appendToFile(message: string) {
|
public static appendToFile(message: string) {
|
||||||
if (CloudRunner.isCloudRunnerEnvironment) {
|
if (CloudRunner.isCloudRunnerEnvironment) {
|
||||||
fs.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
fs.appendFileSync(RemoteClientLogger.LogFilePath, `${message}\n`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,9 +69,12 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||||||
export GITHUB_WORKSPACE="${CloudRunnerFolders.ToLinuxFolder(CloudRunnerFolders.repoPathAbsolute)}"
|
export GITHUB_WORKSPACE="${CloudRunnerFolders.ToLinuxFolder(CloudRunnerFolders.repoPathAbsolute)}"
|
||||||
df -H /data/
|
df -H /data/
|
||||||
${BuildAutomationWorkflow.setupCommands(builderPath)}
|
${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) || ' '}
|
${setupHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}
|
||||||
${buildHooks.filter((x) => x.hook.includes(`before`)).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) || ' '}`;
|
${buildHooks.filter((x) => x.hook.includes(`after`)).map((x) => x.commands) || ' '}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,14 +94,6 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||||||
}; else ${commands} ; fi`;
|
}; else ${commands} ; fi`;
|
||||||
|
|
||||||
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
||||||
${cloneBuilderCommands}
|
${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`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user