ci: 删掉两段临时诊断(Windows 的坑已经查清并写进文件头第 5 条)
构建客户端 / 检查(类型 + 单元测试) (push) Successful in 1m13s
构建客户端 / macOS 通用(.app + .dmg) (push) Skipped
构建客户端 / Windows x64(NSIS 安装包) (push) Failing after 17s
构建客户端 / Linux x64(deb + AppImage) (push) Canceled after 1m1s

This commit is contained in:
2026-10-15 23:18:53 +08:00
parent f3b09ca9a6
commit c9ce7b64ef
-49
View File
@@ -374,41 +374,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# 临时诊断:rustup 写 C:\Users\admin\.rustup\tmp 被拒(os error 5),但同一个
# 账户在交互式会话里写得进去 —— 先让 job 自己说清楚"我是谁、哪种完整性级别、
# 哪些目录写得进去"。查完这一段就删。
- name: 诊断(临时,查完删)
shell: pwsh
run: |
"whoami = $(whoami)"
"integrity = $((whoami /groups | Select-String -Pattern 'Mandatory Label') -join ' ')"
"USERPROFILE = $env:USERPROFILE"
"HOME = $env:HOME"
"TEMP / TMP = [$env:TEMP] / [$env:TMP]"
"TMPDIR = [$env:TMPDIR]"
"RUSTUP_HOME = [$env:RUSTUP_HOME] CARGO_HOME = [$env:CARGO_HOME]"
"TOOL_CACHE = [$env:RUNNER_TOOL_CACHE]"
"npm_config_* = store=[$env:npm_config_store_dir] cache=[$env:npm_config_cache]"
"user-level TEMP = $([Environment]::GetEnvironmentVariable('TEMP','User'))"
$targets = @(
"$env:USERPROFILE\.rustup\tmp",
"$env:USERPROFILE\.cargo",
"$env:USERPROFILE\.cargo\registry",
'C:\Users\admin\runner\windows',
'C:\Users\admin\runner\windows\cache',
(Join-Path (Split-Path -Parent $env:GITHUB_WORKSPACE) 'ci-probe')
)
foreach ($p in $targets) {
$verdict = 'OK'
try {
New-Item -ItemType Directory -Force -Path $p -ErrorAction Stop | Out-Null
$f = Join-Path $p 'probe.txt'
Set-Content -Path $f -Value 'x' -ErrorAction Stop
Remove-Item $f -Force -ErrorAction SilentlyContinue
} catch { $verdict = "FAIL: $($_.Exception.Message)" }
"{0,-46} {1}" -f $verdict, $p
}
# 宿主模式的 Windows runner 上,PATH 里的 `bash` 是 C:\Windows\System32\bash.exe # 宿主模式的 Windows runner 上,PATH 里的 `bash` 是 C:\Windows\System32\bash.exe
# —— WSL 的启动器,而 WSL 在 runner 账户下起不来,报 E_ACCESSDENIED(日志里是 # —— WSL 的启动器,而 WSL 在 runner 账户下起不来,报 E_ACCESSDENIED(日志里是
# 一串 GBK 被当 UTF-8 解出来的乱码 + https://github.com/microsoft/WSL/issues)。 # 一串 GBK 被当 UTF-8 解出来的乱码 + https://github.com/microsoft/WSL/issues)。
@@ -474,20 +439,6 @@ jobs:
with: with:
node-version: ${{ env.NODE_VERSION }} node-version: ${{ env.NODE_VERSION }}
- name: 诊断2(临时,查完删)——pnpm 眼里的目录
shell: pwsh
run: |
"LOCALAPPDATA = $env:LOCALAPPDATA"
"APPDATA = $env:APPDATA"
"pnpm 在 = $((Get-Command pnpm -ErrorAction SilentlyContinue).Source)"
try { "pnpm --version = $(pnpm --version)" } catch { "pnpm 调不动: $($_.Exception.Message)" }
pnpm config list 2>&1 | Select-Object -First 25
"改过的环境变量:RUSTUP_HOME=$env:RUSTUP_HOME | CARGO_HOME=$env:CARGO_HOME | RUNNER_TOOL_CACHE=$env:RUNNER_TOOL_CACHE"
"目标锁目录能不能建:"
foreach ($d in @("$env:LOCALAPPDATA\pnpm-store-operation-locks", 'C:\Users\admin\runner\windows\cache\ci-localappdata\pnpm-store-operation-locks')) {
try { New-Item -ItemType Directory -Force -Path $d -ErrorAction Stop | Out-Null; " OK $d" } catch { " FAIL $d -> $($_.Exception.Message)" }
}
- name: 前端依赖(严格按 lock 装) - name: 前端依赖(严格按 lock 装)
working-directory: desktop working-directory: desktop
shell: pwsh shell: pwsh