-
Notifications
You must be signed in to change notification settings - Fork 42
53 lines (50 loc) · 1.62 KB
/
maven.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
46
47
48
49
50
51
52
53
name: Java CI
on:
push:
branches: [ "main", "1.0", "2.0", "2.1", "2.2", "2.3", "2.4", "2.4.1", "2.4.2", "3.0", "3.0.1", "3.1" ]
pull_request:
branches: [ "main" ]
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build:
strategy:
fail-fast: false
matrix:
java-version: ['21', '22', '23']
java-distribution: ['temurin', 'semeru', 'graalvm']
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.java-distribution }}
cache: 'maven'
- name: Build with Maven
run: ./mvnw -Dmaven.javadoc.skip=true verify -B
site:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
run: ./mvnw verify package site -B
build-benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
java-version: '23'
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
run: ./mvnw -Dmaven.javadoc.skip=true -DskipTests package -f modular-pom.xml