Skip to content

Commit

Permalink
Merge pull request #3478 from ShammiL/all-tests-yml
Browse files Browse the repository at this point in the history
Include two separate jobs for ubuntu and macOS
  • Loading branch information
ShammiL authored Aug 12, 2024
2 parents 0d8c511 + 2d6efba commit b455403
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,43 @@ 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
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 }}

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
Expand All @@ -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 }}

0 comments on commit b455403

Please sign in to comment.