Skip to content

Commit

Permalink
CI/Windows: Use LLVM 19 with MSBuild and CMake
Browse files Browse the repository at this point in the history
Now using the Chocolatey install of LLVM
  • Loading branch information
TheLastRar authored and lightningterror committed Jan 9, 2025
1 parent d7e1350 commit d3effdb
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/windows_build_qt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,31 @@ jobs:
POWERSHELL_TELEMETRY_OPTOUT: 1

steps:
- name: Tempfix Clang
if: inputs.configuration == 'CMake'
run: choco uninstall llvm

- name: Checkout Repository
uses: actions/checkout@v4

- name: Configure MSBuild Clang Version
if: inputs.configuration != 'CMake'
shell: pwsh
run: |
[string[]] $clang_cl = &clang-cl.exe --version
$version = [Regex]::Match($clang_cl[0], "(\d+\.\d+\.\d+)")
$path = $clang_cl[3].TrimStart("InstalledDir: ").TrimEnd("\bin")
$output = @"
<Project>
<PropertyGroup>
<LLVMInstallDir>$path</LLVMInstallDir>
<LLVMToolsVersion>$version</LLVMToolsVersion>
</PropertyGroup>
</Project>
"@
Write-Host $output
$output | Out-File Directory.build.props
# actions/checkout elides tags, fetch them primarily for releases
- name: Fetch Tags
if: ${{ inputs.fetchTags }}
Expand Down

0 comments on commit d3effdb

Please sign in to comment.