From 6a117a52626fca84dee884595ac41cee0839a8a5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Aug 2026 19:47:16 +0000 Subject: [PATCH 1/2] Initial plan From 0301c6e2c70ee5b71ac1f0174775e118267acff1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Aug 2026 19:49:28 +0000 Subject: [PATCH 2/2] Fix Windows pgvector CI build by locating VS install via vswhere Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com> --- .github/workflows/app-tests.yaml | 3 ++- .github/workflows/install-pgvector.bat | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/app-tests.yaml b/.github/workflows/app-tests.yaml index 7e9b8f8..373e2af 100644 --- a/.github/workflows/app-tests.yaml +++ b/.github/workflows/app-tests.yaml @@ -57,7 +57,8 @@ jobs: if: matrix.os == 'windows-latest' shell: cmd run: | - call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" + 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" cd %TEMP% git clone --branch v0.8.1 https://github.com/pgvector/pgvector.git cd pgvector diff --git a/.github/workflows/install-pgvector.bat b/.github/workflows/install-pgvector.bat index 56134c6..ecc0b9a 100644 --- a/.github/workflows/install-pgvector.bat +++ b/.github/workflows/install-pgvector.bat @@ -3,6 +3,7 @@ cd $RUNNER_TEMP git clone --branch v0.6.2 https://github.com/pgvector/pgvector.git cd pgvector -call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" +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" nmake /NOLOGO /F Makefile.win nmake /NOLOGO /F Makefile.win install \ No newline at end of file