Skip to content

Remove stale benchmark graph link #43

Remove stale benchmark graph link

Remove stale benchmark graph link #43

Workflow file for this run

name: benchmark_all
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build_and_benchmark:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
build_type: [Release]
subdir: [core, dagnabbit]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --target ${{matrix.subdir}}_benchmarks
- name: Run Benchmarks
working-directory: ${{github.workspace}}/build/${{matrix.subdir}}/
run: ./${{matrix.subdir}}_benchmarks --benchmark_format=json --benchmark_out=benchmark_result.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: ${{matrix.subdir}} Benchmark
tool: 'googlecpp'
output-file-path: ${{github.workspace}}/build/${{matrix.subdir}}/benchmark_result.json
github-token: ${{secrets.GITHUB_TOKEN}}
auto-push: true
benchmark-data-dir-path: dev/bench/${{matrix.subdir}}
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@charliehuge'