Skip to content

Commit

Permalink
Added Windows instructions - closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 21, 2024
1 parent 7c53ec5 commit 3fe94ed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,20 @@ jobs:
run: brew install pgvector
- run: brew services start postgresql@17 && sleep 1
- run: psql -d postgres -c 'CREATE EXTENSION vector'
windows:
runs-on: windows-latest
steps:
- name: Install pgvector
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd %TEMP%
git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
cd pgvector
nmake /NOLOGO /F Makefile.win
nmake /NOLOGO /F Makefile.win install
shell: cmd
- run: sc config postgresql-x64-14 start=auto
- run: net start postgresql-x64-14
- run: |
"%PGBIN%/psql" -d postgres -c "CREATE EXTENSION vector"
shell: cmd
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ Mac
run: brew install pgvector
```

Windows

```yml
- name: Install pgvector
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd %TEMP%
git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
cd pgvector
nmake /NOLOGO /F Makefile.win
nmake /NOLOGO /F Makefile.win install
shell: cmd
```

See a [full example](https://github.com/pgvector/setup-pgvector/blob/master/.github/workflows/step.yml)

### Service
Expand Down

0 comments on commit 3fe94ed

Please sign in to comment.