27
27
strategy :
28
28
fail-fast : false
29
29
matrix :
30
- os : ["ubuntu-latest", "macos-latest-xlarge", "macos-13"]
30
+ os : ["ubuntu-latest", "macos-latest-xlarge", "macos-13", "windows-latest" ]
31
31
python_version : ["3.10", "3.11", "3.12"]
32
32
exclude :
33
33
- os : macos-latest-xlarge
@@ -53,18 +53,27 @@ jobs:
53
53
psql -d postgres -c "ALTER USER ${{ env.POSTGRES_USERNAME }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
54
54
psql -d postgres -c 'CREATE EXTENSION vector'
55
55
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 }}
60
63
61
- - name : (Windows) Start postgreSQL
64
+ - name : Install pgvector
62
65
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"
68
77
69
78
- name : (Linux) Install pgvector and set password
70
79
if : matrix.os == 'ubuntu-latest'
0 commit comments