pgvector instructions for GitHub Actions
First, choose your installation method:
To add to the preinstalled Postgres installation on runner images, add a step to your workflow.
- name: Install pgvectorrun: | sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y sudo apt-get install postgresql-18-pgvectorNote: Use postgresql-16-pgvector for ubuntu-24.04 and postgresql-14-pgvector for ubuntu-22.04
See a full example
- name: Install pgvectorrun: brew install pgvectorSee a full example
- 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: cmdNote: Use C:\Program Files\Microsoft Visual Studio\2022 for windows-2022
See a full example
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:5432See a full example
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features