Skip to content

Commit

Permalink
build matrix with Java 21 (Linux only)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed May 14, 2024
1 parent 5e4c16d commit fc2847d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ jobs:
strategy:
matrix: # 'macos-14' is arm64
os: ['ubuntu-22.04', 'macos-14', 'windows-2022']
java: [ 17 ]
include:
- os: ubuntu-22.04
java: 21
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- name: 'Check out repository'
uses: actions/checkout@v4

- name: 'Set up Java'
- name: 'Set up Java ${{ matrix.java }}'
uses: actions/setup-java@v4
with:
java-version: 21
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: 'Cache Maven packages'
Expand Down Expand Up @@ -72,7 +76,7 @@ jobs:
- name: 'Set up Java'
uses: actions/setup-java@v4
with:
java-version: 21
java-version: 17
distribution: 'temurin'

- name: 'Cache Maven packages'
Expand Down

0 comments on commit fc2847d

Please sign in to comment.