mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-01-29 03:59:08 +08:00
Adds support for .upmconfig.toml in Windows Docker images (#705)
* Supports github_home in windows-latest * Attempt at copying from specific volume * Adding some more logging * Fix and compiles index.js * Debugging and some other approach * Another attempt at debugging * Testing two more approaches * Try only copying the file * Cleanup * Updates index.js, index.js.map and licenses.txt After `yarn` + `npm run build` * Update index.js.map
This commit is contained in:
committed by
GitHub
parent
a1ebdb7abd
commit
65607f9ebb
@@ -92,6 +92,7 @@ class Docker {
|
||||
const {
|
||||
workspace,
|
||||
actionFolder,
|
||||
runnerTempPath,
|
||||
gitPrivateToken,
|
||||
dockerWorkspacePath,
|
||||
dockerCpuLimit,
|
||||
@@ -99,6 +100,9 @@ class Docker {
|
||||
dockerIsolationMode,
|
||||
} = parameters;
|
||||
|
||||
const githubHome = path.join(runnerTempPath, '_github_home');
|
||||
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
||||
|
||||
return `docker run \
|
||||
--workdir c:${dockerWorkspacePath} \
|
||||
--rm \
|
||||
@@ -106,6 +110,7 @@ class Docker {
|
||||
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
|
||||
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
|
||||
--volume "${workspace}":"c:${dockerWorkspacePath}" \
|
||||
--volume "${githubHome}":"C:/githubhome" \
|
||||
--volume "c:/regkeys":"c:/regkeys" \
|
||||
--volume "C:/Program Files/Microsoft Visual Studio":"C:/Program Files/Microsoft Visual Studio" \
|
||||
--volume "C:/Program Files (x86)/Microsoft Visual Studio":"C:/Program Files (x86)/Microsoft Visual Studio" \
|
||||
|
||||
Reference in New Issue
Block a user