From c9ce7b64ef4f7f1c8b344fbfb0b7b52f2fb4cdc2 Mon Sep 17 00:00:00 2001 From: sloray Date: Thu, 15 Oct 2026 23:18:53 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=88=A0=E6=8E=89=E4=B8=A4=E6=AE=B5?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=AF=8A=E6=96=AD=EF=BC=88Windows=20?= =?UTF-8?q?=E7=9A=84=E5=9D=91=E5=B7=B2=E7=BB=8F=E6=9F=A5=E6=B8=85=E5=B9=B6?= =?UTF-8?q?=E5=86=99=E8=BF=9B=E6=96=87=E4=BB=B6=E5=A4=B4=E7=AC=AC=205=20?= =?UTF-8?q?=E6=9D=A1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-client.yml | 49 ------------------------------ 1 file changed, 49 deletions(-) diff --git a/.github/workflows/build-client.yml b/.github/workflows/build-client.yml index cdf26ec..0bcfd1d 100644 --- a/.github/workflows/build-client.yml +++ b/.github/workflows/build-client.yml @@ -374,41 +374,6 @@ jobs: steps: - 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 # —— WSL 的启动器,而 WSL 在 runner 账户下起不来,报 E_ACCESSDENIED(日志里是 # 一串 GBK 被当 UTF-8 解出来的乱码 + https://github.com/microsoft/WSL/issues)。 @@ -474,20 +439,6 @@ jobs: with: 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 装) working-directory: desktop shell: pwsh