mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Adding some more logging
This commit is contained in:
parent
034a36f362
commit
4c52b94312
2
dist/platforms/windows/entrypoint.ps1
vendored
2
dist/platforms/windows/entrypoint.ps1
vendored
@ -5,7 +5,7 @@ if (Test-Path "C:\githubhome\.upmconfig.toml") {
|
|||||||
Write-Host "Copying .upmconfig.toml to C:\Users\runneradmin"
|
Write-Host "Copying .upmconfig.toml to C:\Users\runneradmin"
|
||||||
Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force
|
Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force
|
||||||
} else {
|
} else {
|
||||||
Write-Host "No .upmconfig.toml found at C:\githuhHome"
|
Write-Host "No .upmconfig.toml found at C:\githubhome"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Import any necessary registry keys, ie: location of windows 10 sdk
|
# Import any necessary registry keys, ie: location of windows 10 sdk
|
||||||
|
@ -100,10 +100,13 @@ class Docker {
|
|||||||
dockerIsolationMode,
|
dockerIsolationMode,
|
||||||
} = parameters;
|
} = parameters;
|
||||||
|
|
||||||
|
// 🔥 Add log for runnerTempPath
|
||||||
|
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
|
||||||
|
|
||||||
const githubHome = path.join(runnerTempPath, '_github_home');
|
const githubHome = path.join(runnerTempPath, '_github_home');
|
||||||
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
||||||
|
|
||||||
return `docker run \
|
const dockerCommand = `docker run \
|
||||||
--workdir c:${dockerWorkspacePath} \
|
--workdir c:${dockerWorkspacePath} \
|
||||||
--rm \
|
--rm \
|
||||||
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
||||||
@ -125,7 +128,12 @@ class Docker {
|
|||||||
--isolation=${dockerIsolationMode} \
|
--isolation=${dockerIsolationMode} \
|
||||||
${image} \
|
${image} \
|
||||||
powershell c:/steps/entrypoint.ps1`;
|
powershell c:/steps/entrypoint.ps1`;
|
||||||
}
|
|
||||||
|
// 🔥 Add log for final dockerCommand
|
||||||
|
console.log('🛠️ [DockerCommand] Final Windows Docker command:');
|
||||||
|
console.log(dockerCommand);
|
||||||
|
|
||||||
|
return dockerCommand;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Docker;
|
export default Docker;
|
||||||
|
Loading…
Reference in New Issue
Block a user