Skip to content

Commit 029f448

Browse files
committed
run with java8 but build with 11
1 parent 45399b6 commit 029f448

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ jobs:
6767
- uses: actions/checkout@v4
6868
- uses: actions/setup-java@v4
6969
with:
70-
java-version: 11
70+
java-version: 8
7171
distribution: temurin
72-
- name: "Set Java system property environment variable for surefire plugin (unit tests)"
73-
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
74-
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
75-
# run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
76-
run: echo "JAVA=${JAVA_HOME}\bin\java" >> $GITHUB_ENV
77-
shell: bash
72+
# - name: "Set Java system property environment variable for surefire plugin (unit tests)"
73+
# # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
74+
# # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
75+
## run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
76+
# run: echo "JAVA=${JAVA_HOME}\bin\java" >> $GITHUB_ENV
77+
# shell: bash
7878
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
7979
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}\bin\java" >> $GITHUB_ENV
8080
shell: bash
81-
# - uses: actions/setup-java@v4
82-
# with:
83-
# distribution: temurin
84-
# java-version: 8
81+
- uses: actions/setup-java@v4
82+
with:
83+
distribution: temurin
84+
java-version: 11
8585
- run: java -version
8686
- run: .kokoro/build.bat
8787
env:

0 commit comments

Comments
 (0)