Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pgvector instructions for GitHub Actions

License

Notifications You must be signed in to change notification settings

pgvector/setup-pgvector

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
30 Commits
 
 
 
 
 
 

Repository files navigation

setup-pgvector

pgvector instructions for GitHub Actions

Build Status Build Status Build Status Build 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 pgvector
        run: |
          sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
          sudo apt-get install postgresql-16-pgvector

Note: Replace 16 with 14 for ubuntu-22.04

See a full example

Mac

      - name: Install pgvector
        run: brew install pgvector

See a full example

Windows

      - name: Install pgvector
        run: |
          call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
          cd %TEMP%
          git clone --branch v0.8.1 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

Service

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

    services:
      postgres:
        image: pgvector/pgvector:pg18-trixie
        env:
          POSTGRES_HOST_AUTH_METHOD: trust
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 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

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.