Skip to content

Test examples

Test examples #14

Workflow file for this run

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_c_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: cmake -S . -B build
- run: cmake --build build
- run: build/test
- run: |
cd examples/openai
cmake -S . -B build
cmake --build build
- run: |
cd examples/cohere
cmake -S . -B build
cmake --build build
- run: |
cd examples/loading
createdb pgvector_example
cmake -S . -B build
cmake --build build
build/example