Skip to content

Commit

Permalink
chore: add Java 22 (ignored) version to the build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Nov 24, 2023
1 parent e47e59c commit 71bb952
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ matrix.addAxis({
]
});

const eaJava = '21';
const eaJava = '22';

matrix.addAxis({
name: 'java_version',
Expand All @@ -27,6 +27,7 @@ matrix.addAxis({
'8',
'11',
'17',
'21',
eaJava,
]
});
Expand Down Expand Up @@ -83,7 +84,9 @@ matrix.exclude({java_distribution: {value: 'semeru'}, java_version: '8'});
matrix.exclude({java_distribution: {value: 'microsoft'}, java_version: '8'});
// Oracle JDK is only supported for JDK 17 and later
matrix.exclude({java_distribution: {value: 'oracle'}, java_version: ['8', '11']});
// matrix.imply({java_version: eaJava}, {java_distribution: {value: 'oracle'}})
// Ignore builds with JAVA EA for now, see https://github.com/apache/jmeter/issues/6114
matrix.exclude({java_version: eaJava})
matrix.imply({java_version: eaJava}, {java_distribution: {value: 'oracle'}})
// TODO: Semeru does not ship Java 21 builds yet
matrix.exclude({java_distribution: {value: 'semeru'}, java_version: '21'})
// Ensure at least one job with "same" hashcode exists
Expand All @@ -98,8 +101,10 @@ matrix.generateRow({java_version: "8"});
matrix.generateRow({java_version: "11"});
// Ensure there will be at least one job with Java 17
matrix.generateRow({java_version: "17"});
// Ensure there will be at least one job with Java 21
matrix.generateRow({java_version: "21"});
// Ensure there will be at least one job with Java EA
matrix.generateRow({java_version: eaJava});
// matrix.generateRow({java_version: eaJava});
const include = matrix.generateRows(process.env.MATRIX_JOBS || 5);
if (include.length === 0) {
throw new Error('Matrix list is empty');
Expand Down

0 comments on commit 71bb952

Please sign in to comment.