Skip to content

CI: trim build matrix on macOS/Windows and add workflow concurrency#196

Open
vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:ci/trim-matrix-and-concurrency
Open

CI: trim build matrix on macOS/Windows and add workflow concurrency#196
vharseko wants to merge 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:ci/trim-matrix-and-concurrency

Conversation

@vharseko

@vharseko vharseko commented Jul 9, 2026

Copy link
Copy Markdown
Member

Analogous to OpenICF #98.

Trim build matrix

build.yml ran a full 4×3 matrix (JDK 17/21/25/26 × Ubuntu/macOS/Windows = 12 jobs). macOS and Windows runners are the slowest and scarcest in CI and rarely surface OS-specific issues beyond the JDK edges, so:

  • Ubuntu keeps the full JDK matrix (17, 21, 25, 26).
  • macOS and Windows now smoke-test only the minimum (17) and maximum (26) JDKs via include.
  • Total jobs: 12 → 8.

The ui-smoke-tests job is unaffected: it downloads the ubuntu-latest-17 and ubuntu-latest-26 artifacts, both of which are still produced by the Ubuntu matrix.

Workflow concurrency

Added concurrency groups keyed on ${{ github.workflow }}-${{ github.ref }} (deploy uses head_branch, since it is triggered by workflow_run):

  • build.yml: cancel-in-progress: true — a new push/PR cancels a superseded in-flight build.
  • release.yml / deploy.yml: cancel-in-progress: false — overlapping runs queue instead of being interrupted, protecting Maven Central publishing / GitHub releases.

Also adds the standard CDDL header to deploy.yml and release.yml (they had none).

- build.yml: run the full JDK matrix (17, 21, 25, 26) only on Ubuntu;
  macOS and Windows now smoke-test just the min (17) and max (26) JDKs,
  cutting the matrix from 12 jobs to 8.
- Add concurrency groups keyed on workflow+ref: cancel-in-progress for
  build.yml, and cancel-in-progress: false for release.yml and deploy.yml
  so publishing/release runs queue instead of being interrupted.
- Add CDDL headers to deploy.yml and release.yml.

Analogous to OpenICF OpenIdentityPlatform#98.
@vharseko vharseko requested a review from maximthomas July 9, 2026 13:23
@vharseko vharseko added the ci CI/CD, build and release workflows label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD, build and release workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants