Skip to content

Commit 0e77b56

Browse files
Reduce CI build matrix on macOS/Windows and add concurrency groups (#164)
Co-authored-by: Maxim Thomas <maxim.thomas@gmail.com>
1 parent 671b82e commit 0e77b56

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ on:
44
push:
55
branches: [ 'sustaining/5.4.x','master', 'issues/**', 'features/**' ]
66
pull_request:
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
710
jobs:
811
build-maven:
912
runs-on: ${{ matrix.os }}
1013
strategy:
1114
matrix:
15+
os: [ 'ubuntu-latest' ]
1216
java: [ '11', '17', '21', '25', '26' ]
13-
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
17+
include:
18+
- { os: 'macos-latest', java: '11' }
19+
- { os: 'macos-latest', java: '26' }
20+
- { os: 'windows-latest', java: '11' }
21+
- { os: 'windows-latest', java: '26' }
1422
fail-fast: false
1523
steps:
1624
- uses: actions/checkout@v6

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [ 'sustaining/5.4.x','master' ]
77
workflows: ["Build","Release"]
88
types: [completed]
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
11+
cancel-in-progress: false
912
jobs:
1013
deploy-maven:
1114
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event=='push' }}

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
description: "Default version to use for new local working copy."
1212
required: true
1313
default: "X.Y.Z-SNAPSHOT"
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: false
1417
jobs:
1518
release-maven:
1619
runs-on: 'ubuntu-latest'

0 commit comments

Comments
 (0)