Skip to content

Commit 28482c4

Browse files
Merge pull request #1221 from eustas:matJ
PiperOrigin-RevId: 695692377
2 parents f2372f2 + 4c4b129 commit 28482c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
if: ${{ matrix.build_system == 'bazel' }}
267267
run: |
268268
cd ${GITHUB_WORKSPACE}/${{ matrix.bazel_project }}
269-
bazelisk build -c opt ...:all
269+
bazelisk build -c opt ...:all --java_runtime_version=remotejdk_21
270270
271271
- name: Fix symlinks for Bazel (Windows)
272272
if: ${{ matrix.build_system == 'bazel' && runner.os == 'Windows' && matrix.bazel_project == 'java' }}
@@ -311,7 +311,7 @@ jobs:
311311
run: |
312312
cd ${GITHUB_WORKSPACE}/${{ matrix.bazel_project }}
313313
bazelisk query "tests(...)" --output=label > ${RUNNER_TEMP}/tests.lst
314-
[ -s ${RUNNER_TEMP}/tests.lst ] && bazelisk test -c opt ...:all
314+
[ -s ${RUNNER_TEMP}/tests.lst ] && bazelisk test -c opt ...:all --java_runtime_version=remotejdk_21
315315
bazelisk clean
316316
317317
- name: Build / Test with Maven

0 commit comments

Comments
 (0)