Skip to content

Commit b67d3c8

Browse files
committed
add benchmarking in CI
1 parent 8a876f0 commit b67d3c8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Benchmark
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
permissions:
7+
pull-requests: write # action needs to post a comment
8+
9+
jobs:
10+
benchmark:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.platform.os }} - ${{ matrix.platform.arch }} - ${{ github.event_name }}
12+
runs-on: ${{ matrix.platform.os }}
13+
strategy:
14+
matrix:
15+
platform:
16+
- os: ubuntu-latest
17+
arch: x64
18+
- os: ubuntu-24.04-arm
19+
arch: aarch64
20+
version:
21+
- '1'
22+
- 'lts'
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: ${{ matrix.version }}
28+
arch: ${{ matrix.platform.arch }}
29+
- name: Install dependencies
30+
run: julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
31+
- name: Run benchmarks
32+
run: julia -e 'using BenchmarkCI; BenchmarkCI.judge(baseline = "origin/main")'
33+
- name: Post results
34+
run: julia -e 'using BenchmarkCI; BenchmarkCI.postjudge()'
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)