File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,13 @@ jobs:
209209 id : date
210210 run : echo "::set-output name=week_of_year::$(date +'%W' --utc)"
211211 - uses : actions/checkout@v4
212+ # Java 8 tests use JDK 11 to compile and JDK 8 to run tests.
213+ # Setting up Java 8 first to capture JAVA8_HOME.
214+ - uses : actions/setup-java@v4
215+ with :
216+ java-version : ${{matrix.java}}
217+ distribution : temurin
218+ - run : echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV
212219 - uses : actions/setup-java@v4
213220 with :
214221 java-version : 11
@@ -226,11 +233,7 @@ jobs:
226233 env :
227234 BUILD_SUBDIR : ${{matrix.package}}
228235 JOB_TYPE : install
229- - uses : actions/setup-java@v4
230- with :
231- java-version : ${{matrix.java}}
232- distribution : temurin
233- - run : java -version
236+
234237 - name : Run tests in Java ${{matrix.java}} with the source compiled in Java 11
235238 run : |
236239 mvn test \
@@ -240,7 +243,8 @@ jobs:
240243 -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \
241244 -Dmaven.wagon.http.retryHandler.count=5 \
242245 --also-make \
243- -T 1C
246+ -T 1C \
247+ -Djvm="${JAVA8_HOME}/bin/java"
244248 env :
245249 BUILD_SUBDIR : ${{matrix.package}}
246250 JOB_TYPE : test
Original file line number Diff line number Diff line change 1+ Subproject commit d464e48c84a043c88a483aa0bbdc4490757042a8
Original file line number Diff line number Diff line change 1+ Subproject commit 9712ecf5c5c76d3d671c3f76db55d6eb3a72db1a
You can’t perform that action at this time.
0 commit comments