diff --git a/.github/workflows/all-tests.yml b/.github/workflows/all-tests.yml index 918b496cc0..95d8162bf2 100644 --- a/.github/workflows/all-tests.yml +++ b/.github/workflows/all-tests.yml @@ -3,12 +3,10 @@ name: All Tests ( openjdk8 ) on: [push] jobs: - others: + Ubuntu: + + runs-on: ubuntu-latest - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] steps: - uses: actions/checkout@v2 - name: Set up JDK 11 @@ -16,8 +14,32 @@ 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: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: joschi/setup-jdk@v2 + 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: runs-on: windows-latest @@ -31,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 }}