Skip to content

Add DSP core functionality and benchmarks #78

Add DSP core functionality and benchmarks

Add DSP core functionality and benchmarks #78

name: CMake CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build-and-test:
name: ${{ matrix.os }} / ${{ matrix.avx2 && 'avx2' || 'baseline' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
avx2: true
- os: windows-latest
avx2: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: >
cmake -S . -B build
-DBUILD_TESTING=ON
-DDSP_BUILD_DEMOS=ON
-DDSP_BUILD_BENCHMARKS=ON
-DDSP_ENABLE_AVX2=${{ matrix.avx2 && 'ON' || 'OFF' }}
-DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release --parallel
- name: Test
run: ctest --test-dir build --build-config Release --output-on-failure
- name: Generate benchmark report
if: runner.os == 'Linux'
run: cmake --build build --config Release --target benchmark_report
- name: Upload benchmark artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: benchmark-report
path: build/reports/dsp_performance.md