18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
- java : [ '17' ]
21
+ java : [ '17', '21', 'profile-j21' ]
22
22
maven : [ '3.9.6' ]
23
23
os : [ 'ubuntu-22.04' ]
24
24
name : Build (Java ${{ matrix.java }}, ${{ matrix.os }})
@@ -46,10 +46,18 @@ jobs:
46
46
47
47
- name : Set up Java ${{ matrix.java }}
48
48
uses : actions/setup-java@v4
49
+ if : ${{ matrix.java != 'profile-j21' }}
49
50
with :
50
51
distribution : ' temurin'
51
52
java-version : ${{ matrix.java }}
52
53
54
+ - name : Set up Java ${{ matrix.java }}
55
+ uses : actions/setup-java@v4
56
+ if : ${{ matrix.java == 'profile-j21' }}
57
+ with :
58
+ distribution : ' temurin'
59
+ java-version : ${{ 21 }}
60
+
53
61
- name : Set up Maven ${{ matrix.maven }}
54
62
uses : stCarolas/setup-maven@v5
55
63
with :
69
77
format : ' csv'
70
78
71
79
- name : Build
80
+ if : ${{ matrix.java != 'profile-j21' }}
72
81
id : build
73
82
run : ' ./.github/scripts/maven-build'
74
83
env :
@@ -79,15 +88,27 @@ jobs:
79
88
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
80
89
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
81
90
91
+ - name : Build
92
+ if : ${{ matrix.java == 'profile-j21' }}
93
+ id : build-j21
94
+ run : ' ./.github/scripts/maven-build clean verify -B -T 1.5C -U -Pj21'
95
+ env :
96
+ CHANGED_FILES : ${{ steps.files.outputs.all }}
97
+ MAVEN_OPTS : >-
98
+ -Xmx2g
99
+ -Dmaven.wagon.http.retryHandler.count=5
100
+ -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
101
+ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
102
+
82
103
- name : Upload Build Log
83
- if : ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
104
+ if : ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure') || (steps.build-j21.outcome == 'success') || (steps.build-j21.outcome == 'failure') ) }}
84
105
uses : actions/upload-artifact@v4
85
106
with :
86
107
name : build-log-java-${{ matrix.java }}-${{ matrix.os }}
87
108
path : build.log
88
109
89
110
- name : Upload SAT Summary Report
90
- if : ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
111
+ if : ${{ matrix.java == '17' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
91
112
uses : actions/upload-artifact@v4
92
113
with :
93
114
name : sat-summary-report
0 commit comments