Skip to content

Commit 627d66b

Browse files
committed
[KYUUBI #1520] [BUILD] Switch to setup-java@v2
### _Why are the changes needed?_ Migrate to GA setup-java from v1 to v2 https://github.com/actions/setup-java ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1520 from pan3793/ga. Closes #1520 7aad9d2 [Cheng Pan] nit 5b31242 [Cheng Pan] Use setup-java@v2 Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent 986d983 commit 627d66b

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/master.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
runs-on: ubuntu-20.04
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/setup-java@v1
19+
- name: Setup JDK 8
20+
uses: actions/setup-java@v2
2021
with:
21-
java-version: '1.8'
22+
distribution: zulu
23+
java-version: 8
2224
- run: build/mvn org.apache.rat:apache-rat-plugin:check
2325
- name: Upload rat report
2426
if: failure()
@@ -61,8 +63,9 @@ jobs:
6163
steps:
6264
- uses: actions/checkout@v2
6365
- name: Setup JDK ${{ matrix.java }}
64-
uses: actions/setup-java@v1
66+
uses: actions/setup-java@v2
6567
with:
68+
distribution: zulu
6669
java-version: ${{ matrix.java }}
6770
- uses: actions/cache@v1
6871
with:
@@ -117,10 +120,11 @@ jobs:
117120
SPARK_LOCAL_IP: localhost
118121
steps:
119122
- uses: actions/checkout@v2
120-
- name: Setup JDK 1.8
121-
uses: actions/setup-java@v1
123+
- name: Setup JDK 8
124+
uses: actions/setup-java@v2
122125
with:
123-
java-version: '1.8'
126+
distribution: zulu
127+
java-version: 8
124128
- uses: actions/cache@v1
125129
with:
126130
path: ~/.m2/repository/com

.github/workflows/nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
SPARK_LOCAL_IP: localhost
1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Setup JDK 1.8
20-
uses: actions/setup-java@v1
19+
- name: Setup JDK 8
20+
uses: actions/setup-java@v2
2121
with:
22-
java-version: '1.8'
22+
distribution: zulu
23+
java-version: 8
2324
- uses: actions/cache@v1
2425
with:
2526
path: ~/.m2/repository/com

.github/workflows/publish-snapshot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ jobs:
2626
key: snapshot-maven-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: |
2828
snapshot-maven-
29-
- name: Install Java 8
30-
uses: actions/setup-java@v1
29+
- name: Setup JDK 8
30+
uses: actions/setup-java@v2
3131
with:
32+
distribution: zulu
3233
java-version: 8
3334
- name: Publish snapshot - master
3435
if: ${{ matrix.branch == 'master' }}

0 commit comments

Comments
 (0)