Skip to content

Commit f0752fd

Browse files
anidotnetclaude
andcommitted
ci: stop running the macOS build under Rosetta
macos-latest is now macos-26-arm64, but setup-java pinned architecture: x64, so the runner fetched an x86_64 Zulu JDK and every JVM in the build -- Maven, each Surefire fork, the Kotlin daemon -- ran under Rosetta 2 emulation. The Maven step took 52m29s on macOS against 18m45s on Ubuntu, a uniform 2-6x penalty across every module rather than one slow test. The GraalVM jobs in the same workflow pin no architecture, get a native arm64 JDK, and finish a full clean install in three minutes. Drop the pin from all three jobs. Ubuntu and Windows runners are x64 anyway, so it is a no-op there and removes the same trap when those images move to arm. Also drop JAVA_OPTS. Maven reads MAVEN_OPTS and no argLine forwards it, so those flags never reached any JVM on any OS -- the Kotlin daemon launches without them in the logs. Dead config, and a pessimization (C1-only JIT) had it ever applied. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 38e40e4 commit f0752fd

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
strategy:
2626
matrix:
2727
java: [ '17' ]
28-
env:
29-
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3028

3129
name: Build with Java ${{ matrix.java }} in Ubuntu
3230
steps:
@@ -37,7 +35,6 @@ jobs:
3735
java-version: ${{ matrix.java }}
3836
distribution: 'zulu'
3937
java-package: jdk
40-
architecture: x64
4138
cache: 'maven'
4239

4340
- name: Build with Maven
@@ -56,8 +53,6 @@ jobs:
5653
strategy:
5754
matrix:
5855
java: [ '17' ]
59-
env:
60-
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
6156

6257
name: Build with Java ${{ matrix.java }} in MacOS
6358
steps:
@@ -68,7 +63,6 @@ jobs:
6863
java-version: ${{ matrix.java }}
6964
distribution: 'zulu'
7065
java-package: jdk
71-
architecture: x64
7266
cache: 'maven'
7367

7468
- name: Build with Maven
@@ -79,8 +73,6 @@ jobs:
7973
strategy:
8074
matrix:
8175
java: [ '17' ]
82-
env:
83-
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
8476

8577
name: Build with Java ${{ matrix.java }} in Windows
8678
steps:
@@ -91,7 +83,6 @@ jobs:
9183
java-version: ${{ matrix.java }}
9284
distribution: 'zulu'
9385
java-package: jdk
94-
architecture: x64
9586
cache: 'maven'
9687

9788
- name: Build with Maven

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
# six-hour default: dbinspect's pub job hung for 2h40m on exactly that.
1919
timeout-minutes: 60
2020
env:
21-
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2221
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
2322
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
2423
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}

.github/workflows/snapshot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
name: Snapshot
1616
runs-on: ubuntu-latest
1717
env:
18-
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
1918
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
2019
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
2120
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}

0 commit comments

Comments
 (0)