Skip to content

docs: add cmake instalation guide #127

docs: add cmake instalation guide

docs: add cmake instalation guide #127

Workflow file for this run

name: CMake CI
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build g++ clang
- name: Install Google Benchmark
run: |
git clone https://github.com/google/benchmark.git
cd benchmark
cmake -E make_directory build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
cmake --build build --config Release
sudo cmake --install build
- name: Configure (CMake)
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build -j
- name: Test (ctest)
run: ctest --test-dir build --output-on-failure