forked from pgvector/pgvector-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 839 Bytes
/
build.yml
File metadata and controls
27 lines (26 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ankane/setup-postgres@v1
with:
database: pgvector_rust_test
dev-files: true
- run: |
cd /tmp
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install
- run: psql -d pgvector_rust_test -c "CREATE EXTENSION vector"
# test features individually
- run: cargo test --features postgres
- run: cargo test --features sqlx
- run: cargo test --features diesel
- run: cargo test --features serde
- run: cargo test --features postgres,halfvec
- run: cargo test --features sqlx,halfvec
- run: cargo test --features diesel,halfvec