-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.09 KB
/
benchmark.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
# Collects benchmarks in gh-pages
# See https://github.com/benchmark-action/github-action-benchmark/blob/master/examples/benchmarkdotnet/README.md
name: Benchmark
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'artifacts/results/*.json'
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "stable"
# gh-pages branch is updated and pushed automatically with extracted benchmark data
- uses: benchmark-action/github-action-benchmark@v1
with:
benchmark-data-dir-path: docs
tool: benchmarkdotnet
output-file-path: 'artifacts/results/AI.Benchmarks.ModelPerformance-report-full.json'
github-token: ${{ secrets.GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true