log to posix
This commit is contained in:
parent
d683b61ff3
commit
a36fde6111
6 changed files with 15 additions and 8 deletions
5
dist/post/index.js
vendored
5
dist/post/index.js
vendored
|
|
@ -52,10 +52,11 @@ if (diskCacheEnabled) {
|
|||
}
|
||||
}
|
||||
|
||||
const remoteCacheLogPath = core.toPosixPath(`${os.tmpdir()}/remote-cache-server.log`)
|
||||
const remoteCacheServerUrl = 'http://localhost:9889/cache'
|
||||
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
||||
if (remoteCacheEnabled) {
|
||||
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}\n`)
|
||||
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}`)
|
||||
if (diskCacheEnabled) {
|
||||
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
||||
}
|
||||
|
|
@ -168,7 +169,7 @@ module.exports = {
|
|||
},
|
||||
remoteCache: {
|
||||
enabled: remoteCacheEnabled,
|
||||
logPath: `${os.tmpdir()}/remote-cache-server.log`,
|
||||
logPath: remoteCacheLogPath,
|
||||
url: remoteCacheServerUrl,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
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