Skip to content

Commit 706b03b

Browse files
committed
Updates GitHub Actions
1 parent 7dc5266 commit 706b03b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
build:
13+
build-jdk11:
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -19,9 +19,23 @@ jobs:
1919
uses: actions/setup-java@v2
2020
with:
2121
java-version: '11'
22-
distribution: 'adopt'
2322

2423
- name: Build with Maven
25-
run: mvn clean install
24+
run: mvn clean install -Pforbiddenapis
25+
env:
26+
MAVEN_OPTS: -Xmx2048m
27+
28+
build-jdk17:
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Set up JDK 17
34+
uses: actions/setup-java@v2
35+
with:
36+
java-version: '17'
37+
38+
- name: Build with Maven
39+
run: mvn clean install -Pforbiddenapis
2640
env:
2741
MAVEN_OPTS: -Xmx2048m

0 commit comments

Comments
 (0)