Skip to content

Commit 876dd79

Browse files
Update CI
V2.36
1 parent a63372b commit 876dd79

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,16 @@ jobs:
7272
if ($env:RUNNER_OS -eq 'Windows') { $mcpPath = "$mcpPath.exe" }
7373
if (-not (Test-Path $mcpPath)) { throw "Expected demo executable not found: $mcpPath" }
7474
75-
$proc = Start-Process -FilePath $mcpPath -RedirectStandardError "$env:TEMP/mcp_stderr.txt" -PassThru -NoNewWindow
75+
$tempRoot = $env:RUNNER_TEMP
76+
if ([string]::IsNullOrWhiteSpace($tempRoot)) {
77+
$tempRoot = [System.IO.Path]::GetTempPath()
78+
}
79+
$stderrPath = Join-Path $tempRoot "mcp_stderr_$PID.txt"
80+
81+
$proc = Start-Process -FilePath $mcpPath -RedirectStandardError $stderrPath -PassThru -NoNewWindow
7682
Start-Sleep -Seconds 3
7783
$proc.Kill()
78-
$stderr = Get-Content "$env:TEMP/mcp_stderr.txt" -Raw -ErrorAction SilentlyContinue
84+
$stderr = Get-Content $stderrPath -Raw -ErrorAction SilentlyContinue
7985
if ($stderr -notmatch 'mcp_filesystem ready') {
8086
throw "mcp_filesystem_demo did not emit readiness line. stderr: $stderr"
8187
}

0 commit comments

Comments
 (0)