Skip to content

Commit

Permalink
[KYUUBI #1521] [BUILD] Migrate to actions/cache@v2
Browse files Browse the repository at this point in the history
### _Why are the changes needed?_

https://github.com/actions/cache

https://github.com/actions/cache/releases/tag/v2.0.0

### _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 #1521 from pan3793/ga-cache.

Closes #1521

87cad57 [Cheng Pan] Migrate to actions/cache@v2

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: ulysses-you <[email protected]>
  • Loading branch information
pan3793 authored and ulysses-you committed Dec 7, 2021
1 parent fe31c3b commit e100cba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ jobs:
with:
distribution: zulu
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/com
key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-com-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/org
key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-org-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/net
key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-net-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/io
key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -125,25 +125,25 @@ jobs:
with:
distribution: zulu
java-version: 8
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/com
key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-com-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/org
key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-org-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/net
key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-net-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/io
key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ jobs:
with:
distribution: zulu
java-version: 8
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/com
key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-com-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/org
key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-org-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/net
key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-net-
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.m2/repository/io
key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }}
Expand Down

0 comments on commit e100cba

Please sign in to comment.