More perf test #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
inputs: | |
name: | |
default: "Manual Trigger" | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build_type: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Ninja | |
run: sudo apt-get install ninja-build | |
- name: Configure CMake | |
run: cmake -GNinja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DLIBDSP_LIB_ONLY=ON -DLIBDSP_BUILD_TESTS=ON | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Run Tests | |
run: ctest --test-dir ./build --output-junit result.xml | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
files: ${{github.workspace}}/build/result.xml |