Skip to content

Initial commit, C++ client, CLI (CMake, CI, sanitizers) #1

Initial commit, C++ client, CLI (CMake, CI, sanitizers)

Initial commit, C++ client, CLI (CMake, CI, sanitizers) #1

Workflow file for this run

name: ci
on:
push:
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ clang libcurl4-openssl-dev
- name: Configure
run: |
if [ "${{ matrix.compiler }}" = "gcc" ]; then
export CXX=g++
else
export CXX=clang++
fi
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON -DENABLE_UBSAN=ON
- name: Build
run: cmake --build build -j
- name: Test
run: ctest --test-dir build --output-on-failure