Skip to content

Commit 005dc7b

Browse files
authored
add build for LTS JDK 25
1 parent d38cb06 commit 005dc7b

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,52 @@ jobs:
226226
with:
227227
name: Package Jar ${{ matrix.java }}
228228
path: target/*.jar
229+
230+
build-25:
231+
runs-on: ubuntu-latest
232+
strategy:
233+
fail-fast: false
234+
max-parallel: 1
235+
matrix:
236+
# build against supported Java LTS versions:
237+
java: [ 25 ]
238+
name: Java ${{ matrix.java }}
239+
steps:
240+
- uses: actions/checkout@v5
241+
- name: Set up JDK ${{ matrix.java }}
242+
uses: actions/setup-java@v5
243+
with:
244+
distribution: 'temurin'
245+
java-version: ${{ matrix.java }}
246+
cache: 'maven'
247+
- name: Compile Java ${{ matrix.java }}
248+
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
249+
- name: Run Tests ${{ matrix.java }}
250+
run: |
251+
mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
252+
- name: Build Test Report ${{ matrix.java }}
253+
if: ${{ always() }}
254+
run: |
255+
mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
256+
mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }}
257+
- name: Upload Test Results ${{ matrix.java }}
258+
if: ${{ always() }}
259+
uses: actions/upload-artifact@v5
260+
with:
261+
name: Test Results ${{ matrix.java }}
262+
path: target/surefire-reports/
263+
- name: Upload Test Report ${{ matrix.java }}
264+
if: ${{ always() }}
265+
uses: actions/upload-artifact@v5
266+
with:
267+
name: Test Report ${{ matrix.java }}
268+
path: target/site/
269+
- name: Package Jar ${{ matrix.java }}
270+
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
271+
- name: Upload Package Results ${{ matrix.java }}
272+
if: ${{ always() }}
273+
uses: actions/upload-artifact@v5
274+
with:
275+
name: Package Jar ${{ matrix.java }}
276+
path: target/*.jar
277+

0 commit comments

Comments
 (0)