File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ * @ nevergiveupcpp
Original file line number Diff line number Diff line change 6767 - name : Test
6868 working-directory : tests/unittest/build/${{ matrix.preset }}
6969 run : ctest --build-config Release --output-on-failure
70+
71+ benchmark :
72+ name : Benchmark
73+ runs-on : windows-latest
74+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
75+
76+ steps :
77+ - uses : actions/checkout@v4
78+
79+ - name : Set VCPKG_ROOT
80+ shell : bash
81+ run : echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
82+
83+ - name : Install Google Benchmark
84+ run : vcpkg install benchmark:x64-windows
85+
86+ - name : Configure
87+ working-directory : tests/benchmark
88+ run : cmake --preset msvc-x64
89+
90+ - name : Build
91+ working-directory : tests/benchmark
92+ run : cmake --build --preset msvc-x64 --config Release
93+
94+ - name : Run
95+ working-directory : tests/benchmark/build/msvc-x64/Release
96+ run : ./benchmark-pvm.exe --benchmark_format=json --benchmark_out=result.json
97+
98+ - name : Store results
99+ uses : benchmark-action/github-action-benchmark@v1
100+ with :
101+ tool : googlecpp
102+ output-file-path : tests/benchmark/build/msvc-x64/Release/result.json
103+ github-token : ${{ secrets.GITHUB_TOKEN }}
104+ auto-push : true
105+ comment-on-alert : true
106+ alert-threshold : ' 150%'
107+ fail-on-alert : true
You can’t perform that action at this time.
0 commit comments