Local SDK development
The repository’s dev/local/ directory contains local SDK development helpers.
PostgreSQL store
The PostgreSQL store is optional. A default build does not require PostgreSQL.
Start the local PostgreSQL container:
./dev/local/postgres_up.sh
Equivalent direct Docker Compose command:
docker compose -f dev/local/docker-compose.postgres.yml up -d
Configure and build with PostgreSQL support:
cmake -S . -B build-postgres \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DA2A_ENABLE_TESTING=ON \
-DA2A_ENABLE_POSTGRES_STORE=ON
cmake --build build-postgres -j"$(nproc)"
Run PostgreSQL-enabled tests:
A2A_TEST_POSTGRES_DSN="postgresql://a2a:a2a@127.0.0.1:5432/a2a" ctest --test-dir build-postgres --output-on-failure