From 05c5fbaa31e51cde854971fcc219fd84ccb58093 Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Thu, 9 Jul 2026 15:31:20 +0300 Subject: [PATCH] Reduce CI build matrix on macOS and Windows to min/max JDK 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. --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6383f71179..98a7ed99dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,8 +22,13 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: + os: [ 'ubuntu-latest' ] java: [ '11', '17', '21', '25', '26' ] - os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + include: + - { os: 'macos-latest', java: '11' } + - { os: 'macos-latest', java: '26' } + - { os: 'windows-latest', java: '11' } + - { os: 'windows-latest', java: '26' } fail-fast: false steps: - uses: actions/checkout@v6