Skip to content

Commit

Permalink
Split java11 to separate workflow to avoid duplidate deploy, Add depe…
Browse files Browse the repository at this point in the history
…ndency submission action to java17 build
  • Loading branch information
Thopap committed Dec 18, 2023
1 parent 0786ad4 commit 00ad09b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-java11.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build IPF with Maven
name: Build IPF with Maven with Java 17

on: [push, pull_request, workflow_dispatch]

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

0 comments on commit 00ad09b

Please sign in to comment.