Skip to content

Commit a86f761

Browse files
committed
fix CI matrix: compute java version inline instead of matrix include
The include entry created a new matrix combination without the server dimension, causing an empty SERVER_VARIANT and a spurious job. Use a startsWith expression to select Java 25 for 26.x, 21 for everything else.
1 parent 8ab89f8 commit a86f761

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/server-test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ jobs:
1313
minecraft: ['1.21.1', '1.21.4', '1.21.8', '1.21.10', '1.21.11', '26.1.2']
1414
# minecraft: ['1.21.1', '1.21.11']
1515
server: ['paper', 'purpur']
16-
java: ['21']
17-
include:
18-
- minecraft: '26.1.2'
19-
java: '25'
2016

2117
name: ${{ matrix.server }} ${{ matrix.minecraft }}
2218

2319
steps:
2420
- uses: actions/checkout@v4
2521

26-
- name: Set up Java ${{ matrix.java }}
22+
- name: Set up Java
2723
uses: actions/setup-java@v4
2824
with:
2925
distribution: 'temurin'
30-
java-version: '${{ matrix.java }}'
26+
java-version: ${{ startsWith(matrix.minecraft, '26.') && '25' || '21' }}
3127

3228
- name: Set up Node.js
3329
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)