-
Notifications
You must be signed in to change notification settings - Fork 24
36 lines (34 loc) · 1.09 KB
/
multi-thread-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
name: Run multi-thread benchmarks
on:
pull_request:
jobs:
multi-thread-benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1.7
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
- name: Run benchmarks
run: julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(env = Dict("JULIA_NUM_THREADS" => "2"));
script = "benchmark/multi-thread/benchmarks.jl",
project = "benchmark",
);
'
- name: Push results
run: julia -e '
using BenchmarkCI;
BenchmarkCI.pushresult(;
title = "Multi-thread benchmark result",
url = "[email protected]:JuliaFolds/Transducers-data.git",
branch = "multi-thread-benchmark-results",
);
'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DATA_SSH_KEY }}