File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,24 +43,18 @@ jobs:
4343 if : matrix.os == 'windows-latest'
4444 shell : pwsh
4545 run : |
46- choco install llvm -y
47- $llvmConfig = Get-Command llvm-config -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source
46+ choco install llvm --version=18.1.8 -y --force
47+ $llvmBin = "C:\Program Files\LLVM\bin"
4848
49- if (!$llvmConfig) {
50- $llvmConfig = Get-ChildItem -Path "C:\Program Files\LLVM\bin\llvm-config.exe", "C:\Program Files (x86)\LLVM\bin\llvm-config.exe" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
51- }
52-
53- if (!$llvmConfig) {
54- $llvmConfig = Get-ChildItem -Path "C:\ProgramData\chocolatey\bin\llvm-config.exe" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
55- }
49+ Write-Host "Verificando instalação em: $llvmBin"
50+ ls "$llvmBin"
5651
57- if ($llvmConfig) {
58- $llvmBin = Split-Path -Parent $llvmConfig
59- Write-Host "LLVM encontrado em: $llvmBin"
52+ if (Test-Path "$llvmBin\llvm-config.exe") {
6053 Copy-Item "$llvmBin\llvm-config.exe" "$llvmBin\llvm-config-21.exe" -Force
6154 Add-Content -Path $env:GITHUB_PATH -Value "$llvmBin"
55+ Write-Host "SUCESSO: LLVM configurado e PATH atualizado."
6256 } else {
63- Write-Error "Não foi possível localizar o llvm-config.exe. A instalação do LLVM pode estar corrompida ."
57+ Write-Error "CRÍTICO: O arquivo não apareceu em C:\Program Files\LLVM\bin mesmo após o install force ."
6458 exit 1
6559 }
6660
You can’t perform that action at this time.
0 commit comments