Allow changing output base path
This commit is contained in:
parent
89b8ef0f1d
commit
0f9296f333
7 changed files with 61 additions and 14 deletions
15
dist/main/index.js
vendored
15
dist/main/index.js
vendored
|
|
@ -18,9 +18,17 @@ const homeDir = os.homedir()
|
|||
const arch = os.arch()
|
||||
const platform = os.platform()
|
||||
|
||||
let bazelOutputBase = core.getInput('output-base')
|
||||
if (!bazelOutputBase) {
|
||||
if (platform === 'win32') {
|
||||
bazelOutputBase = 'D:/_bazel'
|
||||
} else {
|
||||
bazelOutputBase = `${homeDir}/.bazel`
|
||||
}
|
||||
}
|
||||
|
||||
let bazelDisk = core.toPosixPath(`${homeDir}/.cache/bazel-disk`)
|
||||
let bazelRepository = core.toPosixPath(`${homeDir}/.cache/bazel-repo`)
|
||||
let bazelOutputBase = `${homeDir}/.bazel`
|
||||
let bazelrcPaths = [core.toPosixPath(`${homeDir}/.bazelrc`)]
|
||||
let userCacheDir = `${homeDir}/.cache`
|
||||
|
||||
|
|
@ -29,9 +37,8 @@ switch (platform) {
|
|||
userCacheDir = `${homeDir}/Library/Caches`
|
||||
break
|
||||
case 'win32':
|
||||
bazelDisk = 'D:/_bazel-disk'
|
||||
bazelRepository = 'D:/_bazel-repo'
|
||||
bazelOutputBase = 'D:/_bazel'
|
||||
bazelDisk = `${bazelOutputBase}-disk`
|
||||
bazelRepository = `${bazelOutputBase}-repo`
|
||||
userCacheDir = `${homeDir}/AppData/Local`
|
||||
if (process.env.HOME) {
|
||||
bazelrcPaths.push(core.toPosixPath(`${process.env.HOME}/.bazelrc`))
|
||||
|
|
|
|||
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
15
dist/post/index.js
vendored
15
dist/post/index.js
vendored
|
|
@ -18,9 +18,17 @@ const homeDir = os.homedir()
|
|||
const arch = os.arch()
|
||||
const platform = os.platform()
|
||||
|
||||
let bazelOutputBase = core.getInput('output-base')
|
||||
if (!bazelOutputBase) {
|
||||
if (platform === 'win32') {
|
||||
bazelOutputBase = 'D:/_bazel'
|
||||
} else {
|
||||
bazelOutputBase = `${homeDir}/.bazel`
|
||||
}
|
||||
}
|
||||
|
||||
let bazelDisk = core.toPosixPath(`${homeDir}/.cache/bazel-disk`)
|
||||
let bazelRepository = core.toPosixPath(`${homeDir}/.cache/bazel-repo`)
|
||||
let bazelOutputBase = `${homeDir}/.bazel`
|
||||
let bazelrcPaths = [core.toPosixPath(`${homeDir}/.bazelrc`)]
|
||||
let userCacheDir = `${homeDir}/.cache`
|
||||
|
||||
|
|
@ -29,9 +37,8 @@ switch (platform) {
|
|||
userCacheDir = `${homeDir}/Library/Caches`
|
||||
break
|
||||
case 'win32':
|
||||
bazelDisk = 'D:/_bazel-disk'
|
||||
bazelRepository = 'D:/_bazel-repo'
|
||||
bazelOutputBase = 'D:/_bazel'
|
||||
bazelDisk = `${bazelOutputBase}-disk`
|
||||
bazelRepository = `${bazelOutputBase}-repo`
|
||||
userCacheDir = `${homeDir}/AppData/Local`
|
||||
if (process.env.HOME) {
|
||||
bazelrcPaths.push(core.toPosixPath(`${process.env.HOME}/.bazelrc`))
|
||||
|
|
|
|||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue