-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.15 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
name: Run benchmarks
on:
pull_request:
jobs:
Benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1.7
- uses: julia-actions/julia-buildpkg@latest
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"'
- name: Run benchmarks
run: julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(
env = Dict(
"JULIA_NUM_THREADS" => "1",
"OMP_NUM_THREADS" => "1",
),
);
);'
- name: Show
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'
#- name: Push results
# run: julia -e '
# using BenchmarkCI;
# BenchmarkCI.postjudge();
# BenchmarkCI.pushresult(;
# url = "git@github.com:Oblynx/HierarchicalTemporalMemory.jl",
# );'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SSH_KEY: ${{ secrets.DOCUMENTER_KEY }}