-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add JDK 17 (Final) and JDK 18-ea to build matrix
Signed-off-by: Jorge Solórzano <[email protected]>
- Loading branch information
1 parent
0177bc3
commit b045a27
Showing
1 changed file
with
15 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,40 +15,32 @@ | |
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
name: GitHub CI | ||
name: Maven build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
name: Java ${{ matrix.java }} (${{ matrix.distribution }}) - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest,windows-latest, macOS-latest] | ||
java: [8, 11, 16, 17-ea] | ||
jdk: [temurin, zulu] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest'] | ||
java: ['8', '11', '16', '17'] | ||
distribution: ['temurin', 'zulu'] | ||
include: | ||
- java: '18-ea' | ||
distribution: 'zulu' | ||
os: 'ubuntu-latest' | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up cache for ~./m2/repository | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2/repository | ||
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
maven-${{ matrix.os }}-java${{ matrix.java }}- | ||
maven-${{ matrix.os }}- | ||
- name: Set up JDK | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.Java }} (${{ matrix.distribution }}) | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: ${{ matrix.jdk }} | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java }} | ||
|
||
cache: 'maven' | ||
- name: Build with Maven | ||
run: mvn install javadoc:javadoc -e -B -V -Pno-tests-if-not-on-osx |