-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (51 loc) · 1.68 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
54
55
56
name: CI Parent
on:
push:
branches: [master, maint-*]
pull_request:
branches: [master, maint-*]
# Does not help, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=574043
#permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:full') }}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
jdk: ['17']
# temurin is Eclipse/AdoptOpenJDK/Adoptium
# 'liberica' is a preferred Spring SDK
distribution: ['temurin']
experimental: [false]
# jena 3.x has some locking problems under JDK 16/17
include:
- jdk: '21'
distribution: zulu
experimental: false
- jdk: '23'
distribution: zulu
experimental: false
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.jdk }}_${{ matrix.distribution }}-maven-
- name: Build with Maven
run: |
mvn -B verify --file pom.xml