Skip to content

Commit

Permalink
ci: Add JDK 17 (Final) and JDK 18-ea to build matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Solórzano <[email protected]>
  • Loading branch information
jorsol authored and slachiewicz committed Sep 29, 2021
1 parent 0177bc3 commit b045a27
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b045a27

Please sign in to comment.