From fc5a1cfe823746895a2b1a39fd3350bc3f8fcf48 Mon Sep 17 00:00:00 2001 From: ShammiL Date: Tue, 6 Aug 2024 10:32:30 +0530 Subject: [PATCH 1/2] Include two separate jobs for ubuntu and macOS --- .github/workflows/all-tests.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 918b496cc0..1794754832 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -3,12 +3,24 @@ name: All Tests ( openjdk8 ) on: [push] jobs: - others: + Ubuntu: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: joschi/setup-jdk@v2 + with: + distribution: 'adopt' + java-version: 11 + - name: Build with Maven + run: mvn -B clean install --file pom.xml -fae + + MacOS: + + runs-on: macOS-latest - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] steps: - uses: actions/checkout@v2 - name: Set up JDK 11 @@ -18,6 +30,7 @@ jobs: java-version: 11 - name: Build with Maven run: mvn -B clean install --file pom.xml -fae + windows: runs-on: windows-latest From 2d6efba69650ff11a53e70abbd3ded9c1e0ca818 Mon Sep 17 00:00:00 2001 From: ShammiL Date: Thu, 8 Aug 2024 17:18:38 +0530 Subject: [PATCH 2/2] Add JAVA_TOOL_OPTIONS env variable --- .github/workflows/all-tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 1794754832..95d8162bf2 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -14,8 +14,12 @@ jobs: with: distribution: 'adopt' java-version: 11 + - name: Set JAVA_TOOL_OPTIONS + run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV - name: Build with Maven run: mvn -B clean install --file pom.xml -fae + env: + JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }} MacOS: @@ -28,8 +32,13 @@ jobs: with: distribution: 'adopt' java-version: 11 + - name: Set JAVA_TOOL_OPTIONS + run: echo "JAVA_TOOL_OPTIONS='${JAVA_TOOL_OPTIONS:-} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED'" >> $GITHUB_ENV - name: Build with Maven run: mvn -B clean install --file pom.xml -fae + env: + JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }} + windows: @@ -44,5 +53,9 @@ jobs: with: distribution: 'adopt' java-version: 11 + - name: Set JAVA_TOOL_OPTIONS + run: echo "JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED" >> $GITHUB_ENV - name: Build with Maven run: mvn -B clean install --file pom.xml -fae + env: + JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}