Skip to content

Commit 2a5f91f

Browse files
robstrykerclaude
andcommitted
Fix macOS GitHub Actions build failures
Two fixes to resolve macOS build failures in CI: 1. Upgrade setup-java from v1 to v4 with Temurin distribution - The old v1 action doesn't properly support ARM64 macOS runners - macos-latest now uses Apple Silicon (ARM64) machines - v4 automatically detects architecture and installs correct JDK 2. Add MAVEN_OPTS to fix JAXP XML entity size limit errors - Set maxGeneralEntitySizeLimit, totalEntitySizeLimit, and entityExpansionLimit to 0 to bypass XML parsing limits - Prevents "JAXP00010004: The accumulated size of entities exceeded the limit" errors during p2 repository parsing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 0a5cf95 commit 2a5f91f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/actions.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Setup Java ${{ matrix.java }}
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@v4
2626
with:
27+
distribution: 'temurin'
2728
java-version: ${{ matrix.java }}
28-
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
29-
architecture: x64
3029
- name: Setup node ${{ matrix.node }}
3130
uses: actions/setup-node@v4
3231
with:
3332
node-version: ${{ matrix.node }}
3433
- name: Build RSP part using Maven
3534
working-directory: rsp
35+
env:
36+
MAVEN_OPTS: -Djdk.xml.maxGeneralEntitySizeLimit=0 -Djdk.xml.totalEntitySizeLimit=0 -Djdk.xml.entityExpansionLimit=0
3637
run: mvn clean install -U -fae -e -B
3738
- name: Cache Version
3839
working-directory: vscode

0 commit comments

Comments
 (0)