diff --git a/.github/workflows/windows_build_qt.yml b/.github/workflows/windows_build_qt.yml index be0f189edc35b..e4db576764147 100644 --- a/.github/workflows/windows_build_qt.yml +++ b/.github/workflows/windows_build_qt.yml @@ -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 = @" + + + $path + $version + + + "@ + + Write-Host $output + + $output | Out-File Directory.build.props + # actions/checkout elides tags, fetch them primarily for releases - name: Fetch Tags if: ${{ inputs.fetchTags }}