Skip to content

Commit 7e82655

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 * simplify matrix config, and ignore failures from now experimental matrix entries
1 parent 8752b90 commit 7e82655

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

‎.github/workflows/main.yml‎

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

1616
jobs:
1717
build-backend:
18+
name: Backend w/ Java ${{ matrix.java-version }} ${{ matrix.java-distrib }} ${{ matrix.experimental && '🧪' || '📍' }}
19+
runs-on: ubuntu-latest
20+
continue-on-error: ${{ matrix.experimental }} # if experimental, don't fail the whole job
1821
strategy:
22+
fail-fast: true # cancel other jobs if one in matrix fails
1923
matrix:
20-
java: ["11", "17", "21"]
21-
name: Build Backend (Java ${{ matrix.java }})
22-
runs-on: ubuntu-latest
24+
# the first item in the versions list exists only to match .tool-versions
25+
java-version: ["21.0.5+11.0.LTS", "21", "23"]
26+
java-distrib: ["temurin"]
27+
experimental: [false]
28+
include:
29+
# graalvm doesn't have 23 yet?
30+
- java-version: 21
31+
java-distrib: graalvm
32+
experimental: true
2333
steps:
2434
- uses: actions/checkout@v3
25-
- name: Set up Java 11
26-
uses: actions/setup-java@v3
35+
- uses: actions/setup-java@v4
36+
name: Set up Java environment
2737
with:
28-
java-version: "${{ matrix.java }}"
29-
distribution: "temurin"
38+
java-version: "${{ matrix.java-version }}"
39+
distribution: "${{ matrix.java-distrib }}"
3040
cache: "maven"
3141
- name: Backend Build
3242
run: ./mvnw clean verify -B -V

0 commit comments

Comments
 (0)