fix: CI — configure rustup default + PATH for SYSTEM account
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 17s
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 17s
Runner runs as SYSTEM which has no rustup default and missing tool paths. Add GITHUB_PATH entries for Java, cargo, rustup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d6f84306c9
commit
57381566b8
@ -50,8 +50,27 @@ jobs:
|
|||||||
Write-Host "Building version: $tag"
|
Write-Host "Building version: $tag"
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Verify toolchain
|
# Configure toolchain for SYSTEM account
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
- name: Configure toolchain
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
# Ensure rustup has a default toolchain
|
||||||
|
rustup default stable 2>$null
|
||||||
|
|
||||||
|
# Add tool paths that SYSTEM doesn't have
|
||||||
|
# Java
|
||||||
|
$javaHome = (Get-ChildItem "C:\Program Files\Eclipse Adoptium" -Directory | Select-Object -First 1).FullName
|
||||||
|
if ($javaHome) { echo "$javaHome\bin" >> $env:GITHUB_PATH }
|
||||||
|
|
||||||
|
# Cargo
|
||||||
|
$cargobin = "$env:USERPROFILE\.cargo\bin"
|
||||||
|
if (Test-Path $cargobin) { echo "$cargobin" >> $env:GITHUB_PATH }
|
||||||
|
|
||||||
|
# Rustup
|
||||||
|
$rustupbin = "$env:USERPROFILE\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin"
|
||||||
|
if (Test-Path $rustupbin) { echo "$rustupbin" >> $env:GITHUB_PATH }
|
||||||
|
|
||||||
- name: Verify toolchain
|
- name: Verify toolchain
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user