Skip to content

Latest commit

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

setup-pgvector

pgvector instructions for GitHub Actions

Build StatusBuild StatusBuild StatusBuild Status

Getting Started

First, choose your installation method:

Step

To add to the preinstalled Postgres installation on runner images, add a step to your workflow.

Ubuntu

 - name: Install pgvectorrun: | sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y sudo apt-get install postgresql-18-pgvector

Note: Use postgresql-16-pgvector for ubuntu-24.04 and postgresql-14-pgvector for ubuntu-22.04

See a full example

Mac

 - name: Install pgvectorrun: brew install pgvector

See a full example

Windows

 - name: Install pgvectorrun: | call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvars64.bat" cd %TEMP% git clone --branch v0.8.5 https://github.com/pgvector/pgvector.git cd pgvector nmake /NOLOGO /F Makefile.win nmake /NOLOGO /F Makefile.win installshell: cmd

Note: Use C:\Program Files\Microsoft Visual Studio\2022 for windows-2022

See a full example

Service

For a service container, use the pgvector/pgvector:pg18-trixie image instead of postgres.

services:
postgres:
image: pgvector/pgvector:pg18-trixieenv:
POSTGRES_HOST_AUTH_METHOD: trustoptions: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5ports:
- 5432:5432

See a full example

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

About

pgvector instructions for GitHub Actions

Resources

Security policy

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors