diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e70a026..afb206a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -21,13 +21,39 @@ on: [push, pull_request] jobs: build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + cache: 'maven' + + - name: Build with Maven + run: mvn --batch-mode --show-version --errors verify -P run-its + + build-all: + needs: build strategy: matrix: - # windows-latest - os: [ubuntu-latest, macOS-latest] - java: [8] - jdk: [temurin, zulu] + os: [ubuntu-latest, macOS-latest, windows-latest] + java: [8, 11, 17] + # switch to semeru after: https://github.com/actions/setup-java/pull/289 + jdk: [temurin, zulu, adopt-openj9] + exclude: + # was already built + - os: ubuntu-latest + java: 11 + jdk: temurin + # not ready yet, only as semeru + - java: 17 + jdk: adopt-openj9 fail-fast: false runs-on: ${{ matrix.os }} @@ -44,4 +70,4 @@ jobs: cache: 'maven' - name: Build with Maven - run: mvn verify -e -B -V -P run-its + run: mvn --batch-mode --show-version --errors verify -P run-its