Skip to content

Commit 8e643f4

Browse files
authored
CI: trim build matrix on macOS/Windows and add workflow concurrency (#196)
1 parent b22fede commit 8e643f4

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,28 @@ on:
1717
push:
1818
branches: [ 'sustaining/6.3.x','master', 'issues/**', 'features/**' ]
1919
pull_request:
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
2023
jobs:
2124
build-maven:
2225
runs-on: ${{ matrix.os }}
2326
strategy:
2427
matrix:
28+
os: [ 'ubuntu-latest' ]
2529
java: [ '17', '21', '25', '26' ]
26-
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
30+
# macOS and Windows runners are the slowest and scarcest in CI, so only
31+
# smoke-test the minimum (17) and maximum (26) supported JDKs on them.
32+
# Ubuntu keeps the full JDK matrix above.
33+
include:
34+
- os: 'macos-latest'
35+
java: '17'
36+
- os: 'macos-latest'
37+
java: '26'
38+
- os: 'windows-latest'
39+
java: '17'
40+
- os: 'windows-latest'
41+
java: '26'
2742
fail-fast: false
2843
steps:
2944
- uses: actions/checkout@v6

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# The contents of this file are subject to the terms of the Common Development and
2+
# Distribution License (the License). You may not use this file except in compliance with the
3+
# License.
4+
#
5+
# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
6+
# specific language governing permission and limitations under the License.
7+
#
8+
# When distributing Covered Software, include this CDDL Header Notice in each file and include
9+
# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
10+
# Header, with the fields enclosed by brackets [] replaced by your own identifying
11+
# information: "Portions copyright [year] [name of copyright owner]".
12+
#
13+
# Copyright 2024-2026 3A Systems, LLC.
114
name: Package/Deploy
215

316
on:
@@ -6,6 +19,9 @@ on:
619
branches: [ 'sustaining/6.3.x','master' ]
720
workflows: ["Build","Release"]
821
types: [completed]
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
24+
cancel-in-progress: false
925

1026
jobs:
1127
deploy-maven:

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# The contents of this file are subject to the terms of the Common Development and
2+
# Distribution License (the License). You may not use this file except in compliance with the
3+
# License.
4+
#
5+
# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
6+
# specific language governing permission and limitations under the License.
7+
#
8+
# When distributing Covered Software, include this CDDL Header Notice in each file and include
9+
# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
10+
# Header, with the fields enclosed by brackets [] replaced by your own identifying
11+
# information: "Portions copyright [year] [name of copyright owner]".
12+
#
13+
# Copyright 2024-2026 3A Systems, LLC.
114
name: Release
215

316
on:
@@ -11,6 +24,9 @@ on:
1124
description: "Default version to use for new local working copy."
1225
required: true
1326
default: "X.Y.Z-SNAPSHOT"
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: false
1430
jobs:
1531
release-maven:
1632
runs-on: 'ubuntu-latest'

0 commit comments

Comments
 (0)