Skip to content

Commit f186cec

Browse files
committed
[CI] Upgrade to setup-java@v2.
1 parent 7b4a2f9 commit f186cec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,19 @@ jobs:
3636
path: ~/.gradle/wrapper
3737
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
3838
- name: Setup java
39-
uses: actions/setup-java@v1
39+
uses: actions/setup-java@v2
4040
with:
41+
distribution: 'zulu'
4142
java-version: ${{ matrix.java }}
4243
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
4344
run: |
45+
java -Xinternalversion
4446
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
4547
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV
4648
- name: Setup java 8 to run the Gradle script
47-
uses: actions/setup-java@v1
49+
uses: actions/setup-java@v2
4850
with:
51+
distribution: 'zulu'
4952
java-version: 8
5053
- name: Build with Gradle
5154
run: ./gradlew

0 commit comments

Comments
 (0)