-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (54 loc) · 1.36 KB
/
Copy pathrun.yaml
File metadata and controls
62 lines (54 loc) · 1.36 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: kop tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Build with Maven
run: mvn clean install -ntp -B -DskipTests
- name: Upload benchmark jar
uses: actions/upload-artifact@v4
with:
name: benchmarks-jar
path: target/benchmarks.jar
benchmark:
name: ${{ matrix.benchmark }}
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
benchmark:
- CacheReadBenchmark
- ReflectionBenchmark
- TopicNameBenchmark
- RecyclerBenchmark
- RecyclerNotRecycledBenchmark
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Download benchmark jar
uses: actions/download-artifact@v4
with:
name: benchmarks-jar
path: target/
- name: Run ${{ matrix.benchmark }}
run: java -jar target/benchmarks.jar ${{ matrix.benchmark }}