Skip to content

Reduce CI build matrix on macOS and Windows to min/max JDK#1064

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:ci/reduce-build-matrix
Jul 10, 2026
Merged

Reduce CI build matrix on macOS and Windows to min/max JDK#1064
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:ci/reduce-build-matrix

Conversation

@vharseko

@vharseko vharseko commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

The build-maven job matrix was a full cross-product of 5 JDKs × 3 OSes = 15 jobs. This reduces it to 9 jobs by only exercising the minimum and maximum supported JDKs (11 and 26) on macOS and Windows.

  • ubuntu-latest — full Java matrix 11, 17, 21, 25, 26 (also runs the integration-test profile and feeds the Docker jobs)
  • macos-latest11 and 26 only (via include)
  • windows-latest11 and 26 only (via include)

Because the include entries use os values that don't match the base os: [ ubuntu-latest ], GitHub Actions creates them as new combinations rather than expanding existing ones, so JDK 17/21/25 no longer run on macOS/Windows.

Rationale

macOS and Windows runners are the slowest and scarcest in CI; the intermediate JDKs on those platforms rarely surface OS-specific issues that the JDK edges don't. Full coverage is retained on Linux.

Keep the full Java matrix (11, 17, 21, 25, 26) on ubuntu-latest, which
also runs the integration tests and Docker jobs, but only exercise the
minimum and maximum supported JDKs (11 and 26) on macos-latest and
windows-latest via matrix include. This cuts the matrix from 15 jobs
down to 9 while retaining OS smoke coverage on the JDK edges.
@vharseko vharseko merged commit 500ddf5 into OpenIdentityPlatform:master Jul 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build ci CI, GitHub Actions, or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants