Skip to content

implement filter

implement filter #3

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y clang-format
- name: Lint
run: |
find src test -name '*.hpp' -o -name '*.cpp' | xargs clang-format -Werror --dry-run
build:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-13, ubuntu-24.04]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ninja
- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt install -y ninja-build
- name: Build
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
- name: Test
run: |
cd build
ctest --output-on-failure
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3