diff --git a/.github/workflows/build-java11.yml b/.github/workflows/build-java11.yml new file mode 100644 index 0000000000..ed5c3ef14d --- /dev/null +++ b/.github/workflows/build-java11.yml @@ -0,0 +1,27 @@ +name: Build IPF with Maven Java 11 + +on: [push, pull_request, workflow_dispatch] + +env: + MAVEN_OPTS: -Xmx2048m + +# on download timeouts, consider to disable connection pooling +# -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 +# or consider to restrict the ttl +# -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + +jobs: + build: + runs-on: ubuntu-latest + name: Java 11 build + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + cache: 'maven' + - name: Build with Maven + run: mvn -B clean test --file pom.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b596f79071..6d0dd9cbc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build IPF with Maven +name: Build IPF with Maven with Java 17 on: [push, pull_request, workflow_dispatch] @@ -13,21 +13,22 @@ env: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - java: [ 11, 17 ] - name: Java ${{ matrix.java }} build - timeout-minutes: 90 + name: Java 17 build + timeout-minutes: 45 steps: - uses: actions/checkout@v4 - name: Setup Java uses: actions/setup-java@v3 with: distribution: 'zulu' - java-version: ${{ matrix.java }} + java-version: '17' cache: 'maven' - name: Build with Maven run: mvn -B clean package --file pom.xml + - name: Submit Dependency Snapshot + uses: advanced-security/maven-dependency-submission-action@v3 + with: + ignore-maven-wrapper: true # Publish somewhere # Maybe in a separate action file