Skip to content

CI: add pipeline

CI: add pipeline #3

Workflow file for this run

name: Build & Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build g++ libgtest-dev
- name: Configure CMake
run: cmake -S . -B build -GNinja -DENABLE_TESTING=ON
- name: Build
run: cmake --build build
- name: Run tests
run: ctest --test-dir build --output-on-failure