-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (52 loc) · 1.46 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
53
54
55
56
57
58
name: Run benchmarks
on:
pull_request:
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.8'
- uses: julia-actions/cache@v1
with:
cache-name: "benchmarks"
- name: Install dependencies
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.instantiate()
pkg"add PkgBenchmark [email protected]"
- name: Run benchmarks
shell: julia --color=yes {0}
run: |
using PkgBenchmark, BenchmarkCI
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(
env = Dict(
"JULIA_NUM_THREADS" => "2",
),
),
)
- name: Print judgement
shell: julia --color=yes {0}
run: |
using BenchmarkCI
BenchmarkCI.displayjudgement()
- name: Push results
shell: julia --color=yes {0}
run: |
using BenchmarkCI
BenchmarkCI.pushresult(;
url = "[email protected]:Team-RADDISH/ParticleDA.jl.git",
)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DOCUMENTER_KEY }}