-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from bmarwell/update_matrix
[BUILD] update build matrix.
- Loading branch information
Showing
1 changed file
with
14 additions
and
48 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 8 | ||
distribution: adopt-hotspot | ||
distribution: temurin | ||
|
||
- name: License Check | ||
run: mvn apache-rat:check "-Drat.consoleOutput" | ||
|
@@ -49,44 +49,21 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macOS-latest ] | ||
java: | ||
# 8 | ||
- version: 8 | ||
dist: adopt-hotspot | ||
- version: 8 | ||
dist: adopt-openj9 | ||
- version: 8 | ||
dist: zulu | ||
# 11 | ||
- version: 11 | ||
dist: adopt-hotspot | ||
- version: 11 | ||
dist: adopt-openj9 | ||
- version: 11 | ||
dist: zulu | ||
# 17 (16 fallback) | ||
- version: 17 | ||
dist: temurin | ||
- version: 16 | ||
dist: adopt-openj9 | ||
- version: 17 | ||
dist: zulu | ||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ] | ||
jdk: [ 8, 11, 17 ] | ||
dist: [ 'temurin', 'adopt-openj9', 'zulu' ] | ||
exclude: | ||
# was already built | ||
- os: ubuntu-latest | ||
java: | ||
version: 8 | ||
dist: adopt-hotspot | ||
- os: 'ubuntu-latest' | ||
jdk: 8 | ||
dist: 'temurin' | ||
# exclude some builds, because MacOs builds have fewer resources available. | ||
# excludes java 16 on macOS. | ||
- os: macOS-latest | ||
java: | ||
version: 16 | ||
- os: 'macOS-latest' | ||
jdk: 16 | ||
# exclude temurin on MacOS. zulu (also hotspot) and OpenJ9 are sufficient. | ||
- os: macOS-latest | ||
java: | ||
dist: adopt-hotspot | ||
- os: 'macOS-latest' | ||
dist: 'temurin' | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
@@ -95,22 +72,11 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up cache for ~./m2/repository | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/apache/shiro | ||
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/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java.version }} | ||
distribution: ${{ matrix.java.dist }} | ||
java-version: ${{ matrix.jdk }} | ||
distribution: ${{ matrix.dist }} | ||
|
||
- name: Build with Maven | ||
run: mvn verify --show-version --errors --batch-mode --no-transfer-progress -Pdocs |