Skip to content

Commit

Permalink
Ensure that each enumerated java version is used once per GH build ac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
jlink committed Nov 12, 2023
1 parent 2b35f5d commit b593cb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
env:
MATRIX_JOBS: 4
MATRIX_JOBS: 5
steps:
- uses: actions/checkout@v4
- id: set-matrix
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ matrix.exclude({java_distribution: 'microsoft', java_version: '20'});
matrix.exclude({java_distribution: 'oracle', java_version: ['8', '11', '19']});

// Ensure there will be at least one job with minimal supported Java
matrix.generateRow({java_version: matrix.axisByName.java_version.values[0]});

// matrix.generateRow({java_version: matrix.axisByName.java_version.values[0]});
// Ensure there will be at least one job with the latest Java
matrix.generateRow({java_version: matrix.axisByName.java_version.values.slice(-1)[0]});
// matrix.generateRow({java_version: matrix.axisByName.java_version.values.slice(-1)[0]});

// Ensure there will be at least one job with all enumerated Java versions
matrix.axisByName.java_version.values.forEach(v => matrix.generateRow({java_version: v}));

// Ensure at least one Windows and at least one Linux job is present (macOS is almost the same as Linux)
matrix.generateRow({os: 'windows-latest'});
Expand Down

0 comments on commit b593cb3

Please sign in to comment.