Skip to content

Commit

Permalink
Add Java Distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
hdost committed Dec 23, 2021
1 parent 7e49d60 commit 739ceb5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- master
- main

jobs:
build:
name: Build
Expand All @@ -16,6 +15,9 @@ jobs:
- 8
- 11
# - 17 Until Java 6 is not targeted this won't work
java-distribution:
- adopt-openj9 # IBM?
- temurin # OpenJDK
steps:
- uses: actions/[email protected]
with:
Expand All @@ -24,15 +26,15 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '${{ matrix.java-version }}'
distribution: 'temurin'
distribution: '${{ matrix.java-distribution }}'
- name: Caching
uses: actions/cache@v2
with:
path: ~/.m2
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}
- name: Build ${{ matrix.java-version }}
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}-${{ matrix.java-distribution }}
- name: Build
run: |
java -version
./mvnw clean install
- name: Build Java Doc ${{ matrix.java-version }}
- name: Build Java Doc
run: ./mvnw javadoc:jar

0 comments on commit 739ceb5

Please sign in to comment.