log to posix
This commit is contained in:
parent
d683b61ff3
commit
a36fde6111
6 changed files with 15 additions and 8 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -19,10 +19,14 @@ jobs:
|
||||||
- ubuntu
|
- ubuntu
|
||||||
- windows
|
- windows
|
||||||
steps:
|
steps:
|
||||||
|
- run: rm $(which bazel)
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
|
bazelisk-cache: true
|
||||||
|
bazelisk-version: 1.x
|
||||||
remote-cache: true
|
remote-cache: true
|
||||||
|
repository-cache: true
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: bazelbuild/examples
|
repository: bazelbuild/examples
|
||||||
|
|
|
||||||
|
|
@ -46,10 +46,11 @@ if (diskCacheEnabled) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const remoteCacheLogPath = core.toPosixPath(`${os.tmpdir()}/remote-cache-server.log`)
|
||||||
const remoteCacheServerUrl = 'http://localhost:9889/cache'
|
const remoteCacheServerUrl = 'http://localhost:9889/cache'
|
||||||
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
||||||
if (remoteCacheEnabled) {
|
if (remoteCacheEnabled) {
|
||||||
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}\n`)
|
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}`)
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
||||||
}
|
}
|
||||||
|
|
@ -162,7 +163,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
remoteCache: {
|
remoteCache: {
|
||||||
enabled: remoteCacheEnabled,
|
enabled: remoteCacheEnabled,
|
||||||
logPath: `${os.tmpdir()}/remote-cache-server.log`,
|
logPath: remoteCacheLogPath,
|
||||||
url: remoteCacheServerUrl,
|
url: remoteCacheServerUrl,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
dist/main/index.js
vendored
5
dist/main/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 remoteCacheServerUrl = 'http://localhost:9889/cache'
|
||||||
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
||||||
if (remoteCacheEnabled) {
|
if (remoteCacheEnabled) {
|
||||||
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}\n`)
|
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}`)
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +169,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
remoteCache: {
|
remoteCache: {
|
||||||
enabled: remoteCacheEnabled,
|
enabled: remoteCacheEnabled,
|
||||||
logPath: `${os.tmpdir()}/remote-cache-server.log`,
|
logPath: remoteCacheLogPath,
|
||||||
url: remoteCacheServerUrl,
|
url: remoteCacheServerUrl,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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
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 remoteCacheServerUrl = 'http://localhost:9889/cache'
|
||||||
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
const remoteCacheEnabled = core.getBooleanInput('remote-cache')
|
||||||
if (remoteCacheEnabled) {
|
if (remoteCacheEnabled) {
|
||||||
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}\n`)
|
bazelrc.push(`build --remote_cache=${remoteCacheServerUrl}`)
|
||||||
if (diskCacheEnabled) {
|
if (diskCacheEnabled) {
|
||||||
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
core.error('Disk cache and remote cache cannot be enabled at the same time')
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +169,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
remoteCache: {
|
remoteCache: {
|
||||||
enabled: remoteCacheEnabled,
|
enabled: remoteCacheEnabled,
|
||||||
logPath: `${os.tmpdir()}/remote-cache-server.log`,
|
logPath: remoteCacheLogPath,
|
||||||
url: remoteCacheServerUrl,
|
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