From 1063ef07e869968d22b069370ee248810458afc2 Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Tue, 28 May 2024 16:20:10 -0400 Subject: [PATCH] Fix builds on MacOS ARM64 with Java 8 (Temurin). - macos-latest is an arm64 runner, and 'temurin' has no support for this architecture on Java 8 - Force 'x64' architecture on macos-latest since Rosetta layer should provide necessary support Signed-off-by: Roland Grunberg --- .github/workflows/pr-verify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index d65205e02..db4fa223a 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -25,6 +25,7 @@ jobs: with: java-version: '8' distribution: 'temurin' + architecture: ${{ matrix.os == 'macos-latest' && 'x64' || '' }} cache: 'maven' - name: Run Tests - run: ./mvnw -B '-Dlemminx.cacheInRepoDir' clean verify \ No newline at end of file + run: ./mvnw -B '-Dlemminx.cacheInRepoDir' clean verify