Reduce CI build matrix on macOS/Windows and add concurrency groups#164
Open
vharseko wants to merge 2 commits into
Open
Reduce CI build matrix on macOS/Windows and add concurrency groups#164vharseko wants to merge 2 commits into
vharseko wants to merge 2 commits into
Conversation
Mirror OpenAM #1064 and #1065 for the OpenIG workflows: - build.yml: keep the full Java matrix (11, 17, 21, 25, 26) on ubuntu-latest, but only exercise the min/max JDKs (11 and 26) on macos-latest and windows-latest via matrix include, cutting the build-maven matrix from 15 jobs to 9 while keeping OS smoke coverage on the JDK edges. - Add a top-level concurrency group keyed on workflow + ref to every workflow: build.yml cancels the superseded in-progress run (cancel-in-progress=true), while deploy.yml and release.yml queue instead (cancel-in-progress=false) so an in-flight Maven Central publish, tag push or GitHub release is never aborted midway.
maximthomas
reviewed
Jul 9, 2026
Co-authored-by: Maxim Thomas <maxim.thomas@gmail.com>
maximthomas
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors OpenAM #1064 and #1065 for the OpenIG GitHub Actions workflows.
1. Reduce CI build matrix on macOS/Windows to min/max JDK (
build.yml)The
build-mavenmatrix 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 on macOS and Windows:11, 17, 21, 25, 26(also feeds thebuild-dockerjob via theubuntu-latest-11artifact)11and26only (viainclude)11and26only (viainclude)Because the
includeentries useosvalues that don't match the baseos: [ 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. Full coverage is retained on Linux.2. Add concurrency groups to CI workflows
Add a top-level
concurrencygroup keyed on${{ github.workflow }}-${{ github.ref }}so redundant runs on the same ref collapse instead of piling up.cancel-in-progressbuild.ymltruedeploy.ymlfalserelease.ymlfalserelease:prepare/release:perform, tag push, GitHub release).codeql.ymlis intentionally not touched here (handled separately, as in OpenAM #1065).