Skip to content

Switched to pqxx::from_string #166

Switched to pqxx::from_string

Switched to pqxx::from_string #166

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
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
# test install
- run: rm -r build
- run: cmake -S . -B build
- run: cmake --build build
- run: sudo cmake --install build