Skip to content

Commit

Permalink
pgvector
Browse files Browse the repository at this point in the history
  • Loading branch information
theswamis committed May 1, 2024
1 parent 271010b commit 059101c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,26 @@ jobs:
with:
bundler-cache: true
# Add or replace database setup steps here
- name: Install PostgreSQL Extension

- name: Install dependencies
run: |
sudo apt-get update
sudo apt install postgresql-16-pgvector
psql -c 'CREATE EXTENSION vector;' -U rails -d rails_test
sudo apt-get install -y postgresql-server-dev-all git make gcc
- name: Clone pgvector
run: git clone https://github.com/pgvector/pgvector.git

- name: Build and install pgvector
run: |
cd pgvector
make
sudo make install
- name: Configure PostgreSQL and Create pgvector Extension
run: |
sudo service postgresql start
sudo -u postgres psql -c "CREATE EXTENSION vector;"
- name: Set up database schema
run: bin/rails db:schema:load
- name: Run tests
Expand Down

0 comments on commit 059101c

Please sign in to comment.