-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.75 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Do not run this workflow on pull request since this workflow has permission to modify contents.
on:
push:
branches:
- main
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Run benchmark
run: |
julia --project=benchmark --color=yes -e '
using Pkg;
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate();
include("benchmark/benchmarks.jl")'
# - name: Download previous benchmark data
# uses: actions/cache@v4
# with:
# path: ./cache
# key: benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'julia'
output-file-path: output.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
# Enable alert commit comment
comment-on-alert: false
# Do not fail on alert.
fail-on-alert: false
# Enable Job Summary for PRs
summary-always: true
# alert-comment-cc-users: '@lrnv' # could be added to get notifications.
# Change output directory in the gh-pages:
benchmark-data-dir-path: "benchmarks"