2727 strategy:
2828 fail-fast: false
2929 matrix:
30- os: ["ubuntu-latest", "macos-latest-xlarge", "macos-13"]
30+ os: ["ubuntu-latest", "macos-latest-xlarge", "macos-13", "windows-latest" ]
3131 python_version: ["3.10", "3.11", "3.12"]
3232 exclude:
3333 - os: macos-latest-xlarge
@@ -53,18 +53,27 @@ jobs:
5353 psql -d postgres -c "ALTER USER ${{ env.POSTGRES_USERNAME }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
5454 psql -d postgres -c 'CREATE EXTENSION vector'
5555
56- - name: (Windows) Install pgvector using install-pgvector.bat
57- if: matrix.os == 'windows-latest'
58- shell: cmd
59- run: .github\workflows\install-pgvector.bat
56+ # - name: (Windows) Start postgreSQL
57+ # if: matrix.os == 'windows-latest'
58+ # uses: ikalnytskyi/action-setup-postgres@v6
59+ # with:
60+ # username: ${{ env.POSTGRES_USERNAME }}
61+ # password: ${{ env.POSTGRES_PASSWORD }}
62+ # database: ${{ env.POSTGRES_DATABASE }}
6063
61- - name: (Windows) Start postgreSQL
64+ - name: Install pgvector
6265 if: matrix.os == 'windows-latest'
63- uses: ikalnytskyi/action-setup-postgres@v6
64- with:
65- username: ${{ env.POSTGRES_USERNAME }}
66- password: ${{ env.POSTGRES_PASSWORD }}
67- database: ${{ env.POSTGRES_DATABASE }}
66+ shell: cmd
67+ run: |
68+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
69+ cd %TEMP%
70+ git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
71+ cd pgvector
72+ nmake /NOLOGO /F Makefile.win
73+ nmake /NOLOGO /F Makefile.win install
74+ sc config postgresql-x64-14 start=auto
75+ net start postgresql-x64-14
76+ "%PGBIN%/psql" -d postgres -c "CREATE EXTENSION vector"
6877
6978 - name: (Linux) Install pgvector and set password
7079 if: matrix.os == 'ubuntu-latest'
0 commit comments