-
Notifications
You must be signed in to change notification settings - Fork 171
34 lines (32 loc) · 898 Bytes
/
ci.yml
File metadata and controls
34 lines (32 loc) · 898 Bytes
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
name: ci
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21, 25 ]
name: jdk-${{ matrix.java }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: "temurin"
# The JDK listed last will be the default and what Maven runs with
# https://github.com/marketplace/actions/setup-java-jdk#install-multiple-jdks
java-version: |
${{ matrix.java }}
25
cache: "maven"
- name: "Build"
run: |
mvn \
--batch-mode \
-no-transfer-progress \
-V \
-Dproject.build.jdk.version=${{ matrix.java }} \
verify
env:
JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED