Skip to content

Commit 6fe5a2d

Browse files
authored
[Benchmarks] Add CI (#16)
1 parent e9494ef commit 6fe5a2d

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
name: Benchmarks CI
21+
22+
on:
23+
push:
24+
branches: [ main ]
25+
paths:
26+
- 'benchmarks/**'
27+
pull_request:
28+
paths:
29+
- 'benchmarks/**'
30+
31+
jobs:
32+
java:
33+
name: Java/Gradle
34+
runs-on: ubuntu-24.04
35+
strategy:
36+
max-parallel: 4
37+
matrix:
38+
java-version: [21, 23]
39+
steps:
40+
- uses: actions/checkout@v4
41+
with:
42+
submodules: 'true'
43+
44+
- name: Set up JDK
45+
uses: actions/setup-java@v4
46+
with:
47+
distribution: 'temurin'
48+
java-version: |
49+
21
50+
${{ matrix.java-version != '21' && matrix.java-version || '' }}
51+
52+
- name: Setup Gradle
53+
uses: gradle/actions/setup-gradle@v4
54+
55+
- name: Build & Check
56+
run: |
57+
cd benchmarks
58+
./gradlew testClasses assemble ${{ env.ADDITIONAL_GRADLE_OPTS }} check
59+
60+
- name: Capture test results
61+
uses: actions/upload-artifact@v4
62+
if: failure()
63+
with:
64+
name: test-results
65+
path: |
66+
**/build/reports/*
67+
**/build/test-results/*

0 commit comments

Comments
 (0)