Skip to content

Commit 88a53d1

Browse files
committed
Change the GH WF build to use zulu 11 and 17
1 parent 0d7b155 commit 88a53d1

File tree

2 files changed

+20
-58
lines changed

2 files changed

+20
-58
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
name: Build
32

4-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
54

65
jobs:
76
build:
@@ -13,23 +12,25 @@ jobs:
1312
strategy:
1413
fail-fast: false
1514
matrix:
16-
java_version: [17]
15+
java_version: [11,17]
1716
os: [ubuntu-latest]
1817

1918
steps:
20-
- uses: actions/checkout@v2
21-
- name: Set up Java
22-
uses: oracle-actions/setup-java@v1
23-
with:
24-
release: ${{ matrix.java_version }}
25-
- name: Maven cache
26-
uses: actions/cache@v2
27-
env:
28-
cache-name: maven-cache
29-
with:
30-
path:
31-
~/.m2
32-
key: build-${{ env.cache-name }}
33-
- name: Build with Maven
34-
run: mvn package
35-
19+
- uses: actions/checkout@v2
20+
- name: Set up Java
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: ${{ matrix.java_version }}
24+
distribution: 'zulu'
25+
- name: Maven cache
26+
uses: actions/cache@v2
27+
env:
28+
cache-name: maven-cache
29+
with:
30+
path:
31+
~/.m2
32+
key: build-${{ env.cache-name }}
33+
- name: Maven version
34+
run: mvn --version
35+
- name: Build with Maven
36+
run: mvn clean test

.github/workflows/jdk-18-ea.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)