-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (45 loc) · 1.5 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
name: benchmarks
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
branches:
- master
- main
paths-ignore:
- 'LICENSE.md'
- 'README.md'
- 'docs/**'
- 'format/**'
- 'test/**'
jobs:
benchmarks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: "1"
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Benchmark
run: |
git fetch origin +:refs/remotes/origin/HEAD
julia --project=benchmark/ -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
# Pkg.update() allows us to benchmark even when dependencies/compat requirements change
julia --project=benchmark/ -e '
using PkgBenchmark, Loess
juliacmd = `$(Base.julia_cmd()) -O3 -e "using Pkg; Pkg.update()"`
config = BenchmarkConfig(; id="origin/HEAD", juliacmd)
export_markdown("benchmark.md", judge(Loess, config; verbose=true))'
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: "benchmark.md"
comment_tag: benchmark