Skip to content

Commit 55767d5

Browse files
committed
Use shorter strings in the macOS matrix configuration
By having the full names of runner and native it meant in many places GitHub displayed ... instead of the full matrix entry. Therefore, use a simpler arch matrix and derive the runner/native values from it.
1 parent d1095f8 commit 55767d5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,11 @@ jobs:
123123
fail-fast: false
124124
matrix:
125125
java: ['21']
126-
native: [cocoa.macosx.x86_64, cocoa.macosx.aarch64]
127-
runner: [macos-15-intel, macos-latest]
128-
exclude:
129-
- runner: macos-latest
130-
native: cocoa.macosx.x86_64
131-
- runner: macos-15-intel
132-
native: cocoa.macosx.aarch64
126+
arch: [x86_64, aarch64]
133127
uses: ./.github/workflows/build.yml
134128
with:
135-
runner: ${{ matrix.runner }}
129+
runner: ${{ matrix.arch == 'x86_64' && 'macos-15-intel' || 'macos-latest' }}
136130
java: ${{ matrix.java }}
137-
native: ${{ matrix.native }}
131+
native: ${{ matrix.arch == 'x86_64' && 'cocoa.macosx.x86_64' || 'cocoa.macosx.aarch64' }}
138132
performance: ${{ contains(github.event.pull_request.labels.*.name, 'performance') }}
139133
runtodotests: ${{ contains(github.event.pull_request.labels.*.name, 'runtodotests') }}

0 commit comments

Comments
 (0)