Force dav1d 1.5.5 in vcpkg (#3469) dav1d 1.5.4 does not compile with MSVC (error C7780). Fix Windows CI builds on Visual Studio 2026 (windows-latest) by replacing the runner's incompatible standalone LLVM 20 on PATH with Visual Studio's bundled Clang 22 (this is needed to ensure clang-cl can compile Visual Studio's bundled C++ system headers) and pinning vcpkg to a revision that builds dav1d 1.5.5.
diff --git a/.github/actions/setup-windows/action.yml b/.github/actions/setup-windows/action.yml index a866a79..e6babb7 100644 --- a/.github/actions/setup-windows/action.yml +++ b/.github/actions/setup-windows/action.yml
@@ -43,6 +43,13 @@ steps: - name: Setup Developer Command Prompt for Microsoft Visual C++ uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1 + - name: Prefer Visual Studio's bundled LLVM # This is needed to ensure clang-cl can compile Visual Studio's bundled C++ system headers. + run: | + if ($env:llvmX64 -and (Test-Path "$env:llvmX64\clang-cl.exe")) { + $paths = $env:Path -split ';' | Where-Object { $_ -and $_ -notlike '*\LLVM\bin*' } + echo "Path=$(($paths + $env:llvmX64) -join ';')" >> $env:GITHUB_ENV + } + shell: pwsh - name: Set up meson if: ${{ inputs.codec-dav1d == 'LOCAL' }} run: pip install meson @@ -86,6 +93,7 @@ triplet: x64-windows-release token: ${{ github.token }} cache-key: ${{ hashFiles('cmake/Modules/*', 'ext/*.cmd', 'ext/*.sh') }} + revision: 74f5ea45ca78988784b810ad9bbb148ea7ff76d8 # Force dav1d 1.5.5. Remove at next microsoft/vcpkg release. - name: Install nasm if: ${{ inputs.codec-aom == 'LOCAL' || inputs.codec-avm == 'LOCAL' || inputs.codec-dav1d == 'LOCAL' || inputs.codec-svt == 'LOCAL' }}