Skip to content

Commit cb68e58

Browse files
committed
[MINOR][INFRA] Use GitHub Action Cache for build
### What changes were proposed in this pull request? This PR adds `GitHub Action Cache` task on `build` directory. ### Why are the changes needed? This will replace the Maven downloading with the cache. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Manually check the GitHub Action log of this PR. Closes #26652 from dongjoon-hyun/SPARK-MAVEN-CACHE. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent a1706e2 commit cb68e58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/master.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@master
3131
# We split caches because GitHub Action Cache has a 400MB-size limit.
32+
- uses: actions/cache@v1
33+
with:
34+
path: build
35+
key: build-${{ hashFiles('**/pom.xml') }}
36+
restore-keys: |
37+
build-
3238
- uses: actions/cache@v1
3339
with:
3440
path: ~/.m2/repository/com

0 commit comments

Comments
 (0)