-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 992 Bytes
/
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
name: Java CI with Maven
on: [ push, pull_request ]
jobs:
build-non-macos:
strategy:
matrix:
java-version: [ 17, 21 ]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn clean package --batch-mode --threads 4
build-macos:
strategy:
matrix:
java-version: [ 17, 21 ]
os: [ macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn clean package --batch-mode --threads 4 -Pmacos