Skip to content

suppress error stream #19

suppress error stream

suppress error stream #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "CMakeLists.txt"
- ".github/workflows/ci.yml"
- "src/**"
- "include/**"
- "tests/**"
- "examples/**"
- "**/*.c"
- "**/*.cpp"
- "**/*.h"
- "**/*.hpp"
pull_request:
branches: [main]
paths:
- "CMakeLists.txt"
- ".github/workflows/ci.yml"
- "src/**"
- "include/**"
- "tests/**"
- "examples/**"
- "**/*.c"
- "**/*.cpp"
- "**/*.h"
- "**/*.hpp"
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, debian-trixie]
runs-on: ${{ matrix.os == 'ubuntu-22.04' && 'ubuntu-22.04' || 'ubuntu-latest' }}
container: ${{ matrix.os == 'debian-trixie' && 'debian:trixie' || '' }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build gcc g++
- name: Install dependencies (Debian Trixie)
if: matrix.os == 'debian-trixie'
run: |
apt-get update
apt-get install -y cmake ninja-build gcc g++
- name: Configure
run: cmake -S . -B build -G Ninja -DBUILD_TESTING=ON
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure