-
Notifications
You must be signed in to change notification settings - Fork 1.4k
36 lines (33 loc) · 1.03 KB
/
pull-request-build.yml
File metadata and controls
36 lines (33 loc) · 1.03 KB
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
name: "Build and Test"
on:
pull_request:
branches: ['main', '3.6.x-fixes', '3.5.x-fixes', '3.4.x-fixes']
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java: [17, 21]
permissions:
contents: read
pull-requests: read
timeout-minutes: 130
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v3.6.0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '${{ matrix.java }}'
distribution: 'temurin'
cache: maven
- name: Build with Apache Maven (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: mvn -U clean install -fae -B -Peverything
- name: Build with Apache Maven
if: ${{ matrix.os != 'windows-latest' }}
run: mvn -U clean install -Djava.awt.headless=true -fae -B -Peverything
env:
MAVEN_OPTS: "-Xmx1024M"