Skip to content

Commit 8480b79

Browse files
committed
Fix Windows 3?
1 parent 07812a2 commit 8480b79

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/rust-test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ jobs:
127127
run: |
128128
Write-Host "==== Installing LLVM with Chocolatey ===="
129129
choco install llvm
130-
130+
131131
Write-Host "==== Checking Environment ===="
132132
Write-Host "Current PATH: $env:Path"
133133
Write-Host "Chocolatey binaries: $(Get-ChildItem -Path 'C:\ProgramData\chocolatey\bin' -ErrorAction SilentlyContinue | ForEach-Object { $_.Name })"
134-
134+
135135
# Find the LLVM installation
136136
Write-Host "==== Locating LLVM Installation ===="
137137
Write-Host "Checking if llc.exe is in PATH..."
@@ -158,36 +158,36 @@ jobs:
158158
}
159159
}
160160
}
161-
161+
162162
if (-not $llvmPath) {
163163
Write-Host "==== LLVM Search: Broad Scan ===="
164164
Write-Host "llc.exe not found in common locations. Searching Chocolatey directories..."
165165
Get-ChildItem -Path "C:\ProgramData\chocolatey" -Filter "llc.exe" -Recurse -ErrorAction SilentlyContinue | ForEach-Object { Write-Host "Found at: $($_.FullName)" }
166-
166+
167167
Write-Host "Searching Program Files..."
168168
Get-ChildItem -Path "C:\Program Files" -Filter "llc.exe" -Recurse -ErrorAction SilentlyContinue | ForEach-Object { Write-Host "Found at: $($_.FullName)" }
169-
169+
170170
# Find any LLVM directories
171171
Write-Host "==== Looking for LLVM directories ===="
172172
Get-ChildItem -Path "C:\" -Directory -Filter "*LLVM*" -Recurse -ErrorAction SilentlyContinue | ForEach-Object { Write-Host "LLVM directory: $($_.FullName)" }
173-
173+
174174
throw "Could not locate llc.exe. Please check the logs for LLVM installation details."
175175
}
176-
176+
177177
Write-Host "==== LLVM Configuration ===="
178178
$llvmBinDir = Split-Path -Parent $llvmPath
179179
Write-Host "LLVM bin directory: $llvmBinDir"
180180
Write-Host "Files in LLVM bin directory: $(Get-ChildItem -Path $llvmBinDir -ErrorAction SilentlyContinue | ForEach-Object { $_.Name })"
181-
181+
182182
Write-Host "Adding LLVM bin directory to PATH: $llvmBinDir"
183183
echo $llvmBinDir | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
184184
$env:Path += ";$llvmBinDir"
185-
185+
186186
# Verify by running llc
187187
Write-Host "==== Verifying LLVM Installation ===="
188188
Write-Host "Running: & $llvmPath --version"
189189
& $llvmPath --version
190-
190+
191191
Write-Host "==== LLVM Installation Complete ===="
192192
193193
- name: Compile tests

0 commit comments

Comments
 (0)