From 3fe94ed7512d0aed0b571db9ab7f015008c99e46 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 21 Oct 2024 15:43:33 -0700 Subject: [PATCH] Added Windows instructions - closes #2 --- .github/workflows/step.yml | 17 +++++++++++++++++ README.md | 14 ++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/.github/workflows/step.yml b/.github/workflows/step.yml index 1cdc1c6..0ff1c7f 100644 --- a/.github/workflows/step.yml +++ b/.github/workflows/step.yml @@ -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 diff --git a/README.md b/README.md index 29a35a6..4f65f0b 100644 --- a/README.md +++ b/README.md @@ -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