Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nevergiveupcpp
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,41 @@ jobs:
- name: Test
working-directory: tests/unittest/build/${{ matrix.preset }}
run: ctest --build-config Release --output-on-failure

benchmark:
name: Benchmark
runs-on: windows-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v4

- name: Set VCPKG_ROOT
shell: bash
run: echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV

- name: Install Google Benchmark
run: vcpkg install benchmark:x64-windows

- name: Configure
working-directory: tests/benchmark
run: cmake --preset msvc-x64

- name: Build
working-directory: tests/benchmark
run: cmake --build --preset msvc-x64 --config Release

- name: Run
working-directory: tests/benchmark/build/msvc-x64/Release
run: ./benchmark-pvm.exe --benchmark_format=json --benchmark_out=result.json

- name: Store results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: googlecpp
output-file-path: tests/benchmark/build/msvc-x64/Release/result.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
alert-threshold: '150%'
fail-on-alert: true
Loading