diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4362fd..5ecdc94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,11 +11,17 @@ on: jobs: build: - - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + runs-on: ${{ matrix.os }} + name: Build on ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - name: Check out project + uses: actions/checkout@v4 + - name: Set up JDKs uses: actions/setup-java@v4 with: @@ -24,5 +30,6 @@ jobs: 11 17 21 + - name: Build with Maven - run: mvn verify -ntp -B -Djava11.home=$JAVA_HOME_11_X64 -Djava17.home=$JAVA_HOME_17_X64 + run: mvn verify -ntp -B "-Djava11.home=${{env.JAVA_HOME_11_X64}}${{env.JAVA_HOME_11_ARM64}}" "-Djava17.home=${{env.JAVA_HOME_17_X64}}${{env.JAVA_HOME_17_ARM64}}"