-
Notifications
You must be signed in to change notification settings - Fork 56
49 lines (45 loc) · 1.5 KB
/
benchmark.yml
File metadata and controls
49 lines (45 loc) · 1.5 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Process Benchmark
on:
workflow_dispatch:
inputs:
benchmark_data:
description: 'Base64 encoded benchmark data'
required: true
benchmark_name:
description: 'Name for benchmark group on the dashboard'
required: false
default: 'RAJAPerf benchmarks'
commit_sha:
description: 'Commit SHA the benchmark data corresponds to'
required: true
jobs:
store-and-visualize-on-develop:
if: github.ref == 'refs/heads/develop'
permissions:
# Needed to push to gh-pages branch
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.commit_sha }}
- name: Decode benchmark data
run: echo "${{ github.event.inputs.benchmark_data }}" | base64 -d > benchmark.json
- name: Store benchmark result
id: benchmark
uses: benchmark-action/github-action-benchmark@v1
with:
name: ${{ github.event.inputs.benchmark_name }}
tool: 'customSmallerIsBetter'
output-file-path: benchmark.json
ref: ${{ github.event.inputs.commit_sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
gh-pages-branch: gh-pages
benchmark-data-dir-path: dev/bench
comment-always: false
comment-on-alert: false
summary-always: true
fail-on-alert: false
alert-threshold: '120%'
max-items-in-chart: 100