Skip to content

Commit 989cdb6

Browse files
Sean LearySean Leary
authored andcommitted
pipeline-updates - do not build in parallel
1 parent 8de0628 commit 989cdb6

File tree

1 file changed

+98
-3
lines changed

1 file changed

+98
-3
lines changed

.github/workflows/pipeline.yml

Lines changed: 98 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,54 @@ jobs:
3535
name: Create java 1.6 JAR
3636
path: target/*.jar
3737

38+
build-8:
39+
runs-on: ubuntu-latest
40+
strategy:
41+
fail-fast: false
42+
max-parallel: 1
43+
matrix:
44+
# build against supported Java LTS versions:
45+
java: [ 8 ]
46+
name: Java ${{ matrix.java }}
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Set up JDK ${{ matrix.java }}
50+
uses: actions/setup-java@v3
51+
with:
52+
distribution: 'temurin'
53+
java-version: ${{ matrix.java }}
54+
cache: 'maven'
55+
- name: Compile Java ${{ matrix.java }}
56+
run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true
57+
- name: Run Tests ${{ matrix.java }}
58+
run: |
59+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
60+
- name: Build Test Report ${{ matrix.java }}
61+
if: ${{ always() }}
62+
run: |
63+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
64+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
65+
- name: Upload Test Results ${{ matrix.java }}
66+
if: ${{ always() }}
67+
uses: actions/upload-artifact@v3
68+
with:
69+
name: Test Results ${{ matrix.java }}
70+
path: target/surefire-reports/
71+
- name: Upload Test Report ${{ matrix.java }}
72+
if: ${{ always() }}
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: Test Report ${{ matrix.java }}
76+
path: target/site/
77+
- name: Package Jar ${{ matrix.java }}
78+
run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true
79+
- name: Upload Package Results ${{ matrix.java }}
80+
if: ${{ always() }}
81+
uses: actions/upload-artifact@v3
82+
with:
83+
name: Package Jar ${{ matrix.java }}
84+
path: target/*.jar
85+
3886
build-11:
3987
runs-on: ubuntu-latest
4088
strategy:
@@ -83,15 +131,62 @@ jobs:
83131
name: Package Jar ${{ matrix.java }}
84132
path: target/*.jar
85133

134+
build-17:
135+
runs-on: ubuntu-latest
136+
strategy:
137+
fail-fast: false
138+
max-parallel: 1
139+
matrix:
140+
# build against supported Java LTS versions:
141+
java: [ 17 ]
142+
name: Java ${{ matrix.java }}
143+
steps:
144+
- uses: actions/checkout@v3
145+
- name: Set up JDK ${{ matrix.java }}
146+
uses: actions/setup-java@v3
147+
with:
148+
distribution: 'temurin'
149+
java-version: ${{ matrix.java }}
150+
cache: 'maven'
151+
- name: Compile Java ${{ matrix.java }}
152+
run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true
153+
- name: Run Tests ${{ matrix.java }}
154+
run: |
155+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
156+
- name: Build Test Report ${{ matrix.java }}
157+
if: ${{ always() }}
158+
run: |
159+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
160+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
161+
- name: Upload Test Results ${{ matrix.java }}
162+
if: ${{ always() }}
163+
uses: actions/upload-artifact@v3
164+
with:
165+
name: Test Results ${{ matrix.java }}
166+
path: target/surefire-reports/
167+
- name: Upload Test Report ${{ matrix.java }}
168+
if: ${{ always() }}
169+
uses: actions/upload-artifact@v3
170+
with:
171+
name: Test Report ${{ matrix.java }}
172+
path: target/site/
173+
- name: Package Jar ${{ matrix.java }}
174+
run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true
175+
- name: Upload Package Results ${{ matrix.java }}
176+
if: ${{ always() }}
177+
uses: actions/upload-artifact@v3
178+
with:
179+
name: Package Jar ${{ matrix.java }}
180+
path: target/*.jar
86181

87-
build-matrix:
182+
build-21:
88183
runs-on: ubuntu-latest
89184
strategy:
90185
fail-fast: false
91-
max-parallel: 2
186+
max-parallel: 1
92187
matrix:
93188
# build against supported Java LTS versions:
94-
java: [ 8, 17, 21 ]
189+
java: [ 21 ]
95190
name: Java ${{ matrix.java }}
96191
steps:
97192
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)