[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 7aad9d29 [Cheng Pan] nit 5b312423 [Cheng Pan] Use setup-java@v2 Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
986d9830db
commit
627d66b171
16
.github/workflows/master.yml
vendored
16
.github/workflows/master.yml
vendored
@ -16,9 +16,11 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v1
|
||||
- name: Setup JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '1.8'
|
||||
distribution: zulu
|
||||
java-version: 8
|
||||
- run: build/mvn org.apache.rat:apache-rat-plugin:check
|
||||
- name: Upload rat report
|
||||
if: failure()
|
||||
@ -61,8 +63,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: ${{ matrix.java }}
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
@ -117,10 +120,11 @@ jobs:
|
||||
SPARK_LOCAL_IP: localhost
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
- name: Setup JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '1.8'
|
||||
distribution: zulu
|
||||
java-version: 8
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.m2/repository/com
|
||||
|
||||
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
@ -16,10 +16,11 @@ jobs:
|
||||
SPARK_LOCAL_IP: localhost
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
- name: Setup JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '1.8'
|
||||
distribution: zulu
|
||||
java-version: 8
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.m2/repository/com
|
||||
|
||||
5
.github/workflows/publish-snapshot.yml
vendored
5
.github/workflows/publish-snapshot.yml
vendored
@ -26,9 +26,10 @@ jobs:
|
||||
key: snapshot-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
snapshot-maven-
|
||||
- name: Install Java 8
|
||||
uses: actions/setup-java@v1
|
||||
- name: Setup JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 8
|
||||
- name: Publish snapshot - master
|
||||
if: ${{ matrix.branch == 'master' }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user