Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to oracle-actions for JDK 17 download. Add 18 and 19 builds. #240

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,27 @@ jobs:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
java-version: [11, 17]
java-version: [11, 17, 18, 19]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set JDK ${{ matrix.java-version }}
- name: Set JDK ${{ matrix.java-version }} from jdk.java.net
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java-version }}
if: ${{ matrix.java-version != 11 }}
- name: Set JDK ${{ matrix.java-version }} from Zulu
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
if: ${{ matrix.java-version == 11 }}
- name: JDK Version
run: java --version
- name: Enable Maven Cache
uses: actions/cache@v1
with:
Expand Down