Skip to content

Added more tests

Added more tests #175

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-26]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: ankane/setup-postgres@v1
with:
database: pgvector_cpp_test
dev-files: true
- run: |
cd /tmp
git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git
cd pgvector
make
sudo make install
- run: cmake -S . -B build -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=20
- run: cmake --build build
- run: build/test
- run: cmake -S . -B build -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=23
- run: cmake --build build
- run: build/test
- if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install valgrind
valgrind --leak-check=yes --error-exitcode=1 build/test
- if: ${{ runner.os == 'macOS' }}
run: /opt/homebrew/opt/llvm@20/bin/scan-build --status-bugs cmake --build build --clean-first
# test install
- run: rm -r build
- run: cmake -S . -B build
- run: cmake --build build
- run: sudo cmake --install build