forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 1.29 KB
/
ci-build.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
name: Build
on: [push, pull_request]
jobs:
build:
name: (JDK ${{ matrix.jdk }} / ${{ matrix.os }}) Build
env:
MAVEN_OPTS: -XX:+IgnoreUnrecognizedVMOptions --illegal-access=debug -XX:StartFlightRecording=maxsize=5g,disk=true,dumponexit=true,settings=default,filename=./
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
jdk: ['8', '11']
include:
- os: ubuntu-latest
jdk: '16'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# NOTE(AR) The `-T 2C` enables multi-threaded builds below, faster, but may need to be disabled when diagnosing problems
# NOTE(DP): Reuse of build artefacts across workflows to (hopefully) limit network traffic
- name: Maven Build
run: mvn -V -B -q -T 2C -DskipTests=true "-Dmaven.javadoc.skip=true" install
continue-on-error: ${{ matrix.jdk == '16' }}