Skip to content

Commit

Permalink
Create benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU authored Oct 20, 2024
1 parent 229af0c commit 4e09a6c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Benchmark
on:
workflow_dispatch:
push:
branches:
- master

permissions:
contents: write
deployments: write

jobs:
benchmark:
name: Run Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Run benchmark
run: cd Benchmark && dotnet run -c Release --exporters json

- name: Store benchmark results
uses: rhysd/github-action-benchmark@v1
with:
name: Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: Benchmark/BenchmarkDotNet.Artifacts/results/Benchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true

0 comments on commit 4e09a6c

Please sign in to comment.