Skip to content

Commit c0c8cec

Browse files
committed
try add benchmarks
1 parent 5b806d3 commit c0c8cec

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/dotnet.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,20 @@ jobs:
4848
- name: Run Benchmarks
4949
run: |
5050
if [ "${{ github.event_name }}" == "pull_request" ]; then
51-
dotnet run -c Release --project ./src/Hexecs.Benchmarks/ -- --filter '*' --exporters json --join --job LowRuntime
51+
dotnet run -c Release --project ./src/Hexecs.Benchmarks/ -- --filter '*' --exporters json --join --job LowRuntime --artifacts ./BenchmarkArtifacts
5252
else
53-
dotnet run -c Release --project ./src/Hexecs.Benchmarks/ -- --filter '*' --exporters json --join
53+
dotnet run -c Release --project ./src/Hexecs.Benchmarks/ -- --filter '*' --exporters json --join --artifacts ./BenchmarkArtifacts
5454
fi
5555
56+
- name: List results
57+
run: ls -R ./BenchmarkArtifacts
58+
5659
- name: Store benchmark result
5760
uses: benchmark-action/github-action-benchmark@v1
5861
with:
5962
tool: 'benchmarkdotnet'
6063
# BenchmarkDotNet при --join создает файл с именем '*-report-full.json' или 'BenchmarkRun-report.json'
61-
output-file-path: 'BenchmarkDotNet.Artifacts/results/BenchmarkRun-report.json'
64+
output-file-path: './BenchmarkArtifacts/results/BenchmarkRun-report.json'
6265
github-token: ${{ secrets.GITHUB_TOKEN }}
6366
auto-push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
6467
comment-on-alert: true

0 commit comments

Comments
 (0)