Skip to content

Fix Windows pgvector CI build by dynamically locating Visual Studio install path - #302

Open
Pamela Fox (pamelafox) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ci-broken-pgvector-windows
Open

Fix Windows pgvector CI build by dynamically locating Visual Studio install path#302
Pamela Fox (pamelafox) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-ci-broken-pgvector-windows

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Windows CI jobs failed to build pgvector because the workflow hardcoded the Visual Studio install path (C:\Program Files\Microsoft Visual Studio\2022\Enterprise\...), and vcvars64.bat could not be found once the windows-latest runner image no longer matched that assumed path/edition.

Changes

  • .github/workflows/app-tests.yaml: replaced the hardcoded vcvars64.bat path with a vswhere.exe lookup that resolves the actual installed Visual Studio location before calling it.
  • .github/workflows/install-pgvector.bat: applied the same vswhere.exe-based lookup for consistency.
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do set VSINSTALLPATH=%%i
call "%VSINSTALLPATH%\VC\Auxiliary\Build\vcvars64.bat"

This makes the pgvector build step resilient to changes in the Visual Studio edition or version pre-installed on GitHub-hosted Windows runners.

Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI broken for pgvector on Windows Fix Windows pgvector CI build by dynamically locating Visual Studio install path Aug 5, 2026
@pamelafox
Pamela Fox (pamelafox) marked this pull request as ready for review August 6, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI broken for pgvector on windows

3 participants