-
Notifications
You must be signed in to change notification settings - Fork 146
43 lines (40 loc) · 1.28 KB
/
benchmarks-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Libplanet benchmark (for pull requests)
on:
pull_request: {}
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Benchmark.Net benchmarks
continue-on-error: true
strategy:
matrix:
os:
- [macOS, self-hosted, ARM64]
- linux-8cores
- windows-8cores
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.pull_request.head.sha }}
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Run benchmark
run: dotnet run --project tools/Libplanet.Benchmarks -c Release -- --exporters json --filter '*'
- name: Compare benchmark result
uses: planetarium/github-action-benchmark@v1
with:
name: Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: BenchmarkDotNet.Artifacts/results/Combined.Benchmarks.json
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: dev/bench/${{ github.base_ref }}/${{ matrix.os }}
save-data-file: false
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@libplanet'