Skip to content

Commit b0f9c46

Browse files
committed
ARTEMIS-5711: compile and run examples on JDK25 as well
1 parent 7c0a951 commit b0f9c46

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
java: [ 17 ]
32+
java: [ 17, 25 ]
3333

3434
steps:
3535
- uses: actions/checkout@v4
@@ -108,7 +108,7 @@ jobs:
108108
strategy:
109109
fail-fast: false
110110
matrix:
111-
java: [ 17 ]
111+
java: [ 17, 25 ]
112112

113113
steps:
114114
- uses: actions/checkout@v4
@@ -170,11 +170,18 @@ jobs:
170170
./scripts/update-examples-version.sh ${{ steps.identify-artemis-version.outputs.artemis-build-version }}
171171
git diff -U0 -p --stat
172172
173-
- name: Build Examples
173+
- name: Build Examples (JDK 25 / -Prelease)
174+
if: matrix.java == '25'
174175
run: |
175176
cd activemq-artemis-examples
176177
mvn -s .github/maven-settings.xml package -Prelease
177178
179+
- name: Build Examples (JDK <25 / -Pexamples,noRun)
180+
if: matrix.java != '25'
181+
run: |
182+
cd activemq-artemis-examples
183+
mvn -s .github/maven-settings.xml package -Pexamples,noRun
184+
178185
- name: Clean Up Before Caching
179186
run: |
180187
rm -rf ~/.m2/repository/org/apache/activemq/tests

0 commit comments

Comments
 (0)