-
-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (24 loc) · 1.02 KB
/
Copy pathbenchmarks.yaml
File metadata and controls
25 lines (24 loc) · 1.02 KB
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
name: Add Benchmark Results
on: [pull_request]
jobs:
build:
name: Build Benchmarks Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x' # SDK Version to use; x will use the latest version of the 3.1 channe
- name: build project
run:
dotnet build SAP1EMU.Benchmarks --configuration Release
- name: run benchamrks
run: dotnet run --project SAP1EMU.Benchmarks --no-build --configuration Release
- name: copy report
run: cp BenchmarkDotNet.Artifacts/results/SAP1EMU.Benchmarks.EngineBenchmark-report-github.md .github/workflows/
# && cp ./SAP1EMU.Benchmarks/bin/Release/netcoreapp3.1/BenchmarkDotNet.Artifacts/results/SAP1EMU.Benchmarks.EngineBenchmark-report-github.md .
- uses: harupy/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: SAP1EMU.Benchmarks.EngineBenchmark-report-github.md