You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2019/11/24 20:37:12 UTC
[spark] branch branch-2.4 updated: [MINOR][INFRA] Use GitHub Action
Cache for `build`
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 6880ccd [MINOR][INFRA] Use GitHub Action Cache for `build`
6880ccd is described below
commit 6880ccd2cfc8a38554257a65b1aab42eaed4a0fd
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Sun Nov 24 12:35:57 2019 -0800
[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 <dh...@apple.com>
Signed-off-by: Dongjoon Hyun <dh...@apple.com>
(cherry picked from commit cb68e58f88e8481e76b358f46fd4356d656e8277)
Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
.github/workflows/branch-2.4.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/branch-2.4.yml b/.github/workflows/branch-2.4.yml
index 2aeffc5..94088c3 100644
--- a/.github/workflows/branch-2.4.yml
+++ b/.github/workflows/branch-2.4.yml
@@ -23,6 +23,12 @@ jobs:
# 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
key: ${{ matrix.scala }}-${{ matrix.hadoop }}-maven-com-${{ hashFiles('**/pom.xml') }}
restore-keys: |
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org