mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Use RUNNER_TEMP environment variable instead of a hardcoded path (#138)
This commit is contained in:
parent
3e0842dda0
commit
3ee15170fd
File diff suppressed because one or more lines are too long
@ -22,6 +22,7 @@ class BuildParameters {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
version: Input.unityVersion,
|
version: Input.unityVersion,
|
||||||
|
runnerTempPath: process.env.RUNNER_TEMP,
|
||||||
platform: Input.targetPlatform,
|
platform: Input.targetPlatform,
|
||||||
projectPath: Input.projectPath,
|
projectPath: Input.projectPath,
|
||||||
buildName: Input.buildName,
|
buildName: Input.buildName,
|
||||||
|
@ -21,6 +21,7 @@ class Docker {
|
|||||||
const {
|
const {
|
||||||
version,
|
version,
|
||||||
workspace,
|
workspace,
|
||||||
|
runnerTempPath,
|
||||||
platform,
|
platform,
|
||||||
projectPath,
|
projectPath,
|
||||||
buildName,
|
buildName,
|
||||||
@ -77,8 +78,8 @@ class Docker {
|
|||||||
--env RUNNER_TEMP \
|
--env RUNNER_TEMP \
|
||||||
--env RUNNER_WORKSPACE \
|
--env RUNNER_WORKSPACE \
|
||||||
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
||||||
--volume "/home/runner/work/_temp/_github_home":"/github/home" \
|
--volume "${runnerTempPath}/_github_home":"/github/home" \
|
||||||
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
|
--volume "${runnerTempPath}/_github_workflow":"/github/workflow" \
|
||||||
--volume "${workspace}":"/github/workspace" \
|
--volume "${workspace}":"/github/workspace" \
|
||||||
${image}`;
|
${image}`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user