Skip to content

Commit 61b9098

Browse files
committed
Fix pgvector installation
1 parent 1d5cd6e commit 61b9098

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/evaluate.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,17 @@ jobs:
3030
echo "Comment contains #evaluate hashtag"
3131
3232
- uses: actions/checkout@v4
33-
- name: Install PostgreSQL development libraries
33+
34+
- name: Install pgvector
3435
run: |
35-
sudo apt update
36-
sudo apt install postgresql-server-dev-14
37-
- name: Setup postgres
38-
uses: ikalnytskyi/action-setup-postgres@v6
39-
with:
40-
username: admin
41-
password: postgres
42-
database: postgres
36+
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
37+
sudo apt-get install postgresql-14-pgvector
38+
39+
- name: Start postgres
40+
run: sudo systemctl start postgresql
4341

44-
- name: Install pgvector on MacOS/Linux using install-pgvector.sh
45-
run: .github/workflows/install-pgvector.sh
42+
- name: Create vector extension
43+
- run: sudo -u postgres psql -c 'CREATE EXTENSION vector'
4644

4745
- name: Install python
4846
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)