Skip to content

[5.x.x] update settings for dependency-check-maven #1567

[5.x.x] update settings for dependency-check-maven

[5.x.x] update settings for dependency-check-maven #1567

Workflow file for this run

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' }}