Skip to content

Commit 6322123

Browse files
committed
Use a matrix of version/distrib for the backend job
* we can't build with 11 and 17 anymore, since we'll use 21 as the baseline * attempting to build with graalvm out of curiosity * github's setup-java support of asdf is pretty useless, so replicating version nr here -- see actions/setup-java#615
1 parent 86fd7df commit 6322123

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,26 @@ on:
1515

1616
jobs:
1717
build-backend:
18+
name: Build Backend
19+
runs-on: ubuntu-latest
1820
strategy:
1921
matrix:
20-
java: ["11", "17", "21"]
21-
name: Build Backend (Java ${{ matrix.java }})
22-
runs-on: ubuntu-latest
22+
java-version: ["21.0.5+11.0.LTS", "21", "23"]
23+
java-distrib: ["temurin", "graalvm"]
24+
exclude:
25+
# this matrix combo exists only to match .tool-versions
26+
- java-version: 21.0.5+11.0.LTS
27+
java-distrib: graalvm
28+
# graalvm doesn't have 23 yet
29+
- java-version: 23
30+
java-distrib: graalvm
2331
steps:
2432
- uses: actions/checkout@v3
25-
- name: Set up Java 11
26-
uses: actions/setup-java@v3
33+
- uses: actions/setup-java@v4
34+
name: Set up Java environment
2735
with:
28-
java-version: "${{ matrix.java }}"
29-
distribution: "temurin"
36+
java-version: "${{ matrix.java-version }}"
37+
distribution: "${{ matrix.java-distrib }}"
3038
cache: "maven"
3139
- name: Backend Build
3240
run: ./mvnw clean verify -B -V

0 commit comments

Comments
 (0)