This commit is contained in:
Alex Rodionov 2024-05-30 15:35:54 -07:00
parent 418a29d1a0
commit 7ee036d7e7
6 changed files with 11 additions and 10 deletions

7
dist/main/index.js vendored
View file

@ -97047,15 +97047,14 @@ async function restoreCache(cacheConfig) {
async function startRemoteCacheServer() {
core.startGroup("Remote cache server")
core.debug(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
core.info(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
const log = fs.openSync(config.remoteCacheServer.logPath, 'a')
const serverProcess = fork(__nccwpck_require__.ab + "remote-cache-server.js", [], {
detached: true,
stdio: ['ignore', log, log, 'ipc']
stdio: ['ignore', log, log]
})
serverProcess.unref()
core.info(`Started remote cache server (${serverProcess.pid}`)
core.info(`Started remote cache server (${serverProcess.pid})`)
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
core.endGroup()
}

3
dist/post/index.js vendored
View file

@ -95940,7 +95940,6 @@ const core = __nccwpck_require__(2186)
const glob = __nccwpck_require__(8090)
const config = __nccwpck_require__(5532)
const { getFolderSize } = __nccwpck_require__(4962)
const { execSync } = __nccwpck_require__(2081)
async function run() {
await stopRemoteCacheServer()
@ -95948,6 +95947,8 @@ async function run() {
}
async function stopRemoteCacheServer() {
core.info(fs.readFileSync(config.remoteCacheServer.logPath, 'utf8'))
const pid = core.getState('remote-cache-server-pid')
if (pid) {
try {

File diff suppressed because one or more lines are too long