Skip to content

VER: Release 0.9.1 #196

VER: Release 0.9.1

VER: Release 0.9.1 #196

Workflow file for this run

name: build
# Build and test databento-cpp
on:
push:
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
compiler: [clang++, g++]
name: build - ubuntu-latest - ${{ matrix.compiler}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
# pcre is a dependency of cppcheck
run: |
sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev libzstd-dev ninja-build
- name: Install cppcheck
run: |
git clone https://github.com/danmar/cppcheck.git
cd cppcheck
cmake -S. -B build \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_MATCHCOMPILER=1 \
-DHAVE_RULES=1
cmake --build build --config Release
sudo cmake --install build --prefix /usr
- name: Install gtest
uses: MarkusJx/[email protected]
- name: CMake configure
run: |
cmake -S . -B build \
-GNinja \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-DDATABENTO_ENABLE_UNIT_TESTING=1 \
-DDATABENTO_ENABLE_EXAMPLES=1 \
-DDATABENTO_ENABLE_CLANG_TIDY=1 \
-DDATABENTO_ENABLE_CPPCHECK=1 \
-DDATABENTO_ENABLE_ASAN=1 \
-DDATABENTO_ENABLE_UBSAN=1
- name: CMake build
run: cmake --build build
- name: Unit tests
run: cd build && ctest --verbose
macos:
name: build - macos-latest - clang++
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: brew install cmake cppcheck googletest openssl@3 ninja zstd
# Don't enable clang-tidy on macOS because it's incredibly slow
- name: CMake configure
run: |
cmake -S . -B build \
-GNinja \
-DDATABENTO_ENABLE_UNIT_TESTING=1 \
-DDATABENTO_ENABLE_EXAMPLES=1 \
-DDATABENTO_ENABLE_CPPCHECK=1 \
-DDATABENTO_ENABLE_TSAN=1 \
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
- name: CMake build
run: cmake --build build
- name: Unit tests
run: cd build && ctest --verbose