From cb68e58f88e8481e76b358f46fd4356d656e8277 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Sun, 24 Nov 2019 12:35:57 -0800 Subject: [PATCH] [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 Signed-off-by: Dongjoon Hyun --- .github/workflows/master.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 30f3272c8b..9338dc7bcb 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -29,6 +29,12 @@ jobs: steps: - uses: actions/checkout@master # We split caches because GitHub Action Cache has a 400MB-size limit. + - uses: actions/cache@v1 + with: + path: build + key: build-${{ hashFiles('**/pom.xml') }} + restore-keys: | + build- - uses: actions/cache@v1 with: path: ~/.m2/repository/com