-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.01 KB
/
benchmarks.yaml
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
name: Benchmarks
permissions:
contents: read
on:
schedule:
# runs once a week
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get repo
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package '-Dmaven.test.skip'
- name: Create Results Directory
run: mkdir bench_results
- name: Run JMH Benchmarks
run: java -jar jgalgo-bench/target/benchmarks.jar -rf csv -rff bench_results/bench_results.csv "com.jgalgo.bench.impls.*"
- name: Zip Results
run: |
tar -czf bench_results.tar.gz bench_results
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: jmh-benchmarks-results
path: bench_results.tar.gz