This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 29eb69f [FLINK-27012] Caching maven dependencies to speed up
workflows in github actions
29eb69f is described below
commit 29eb69fe860137adfba8fcf54f0165a26f19f3f5
Author: wangyang0918 <[email protected]>
AuthorDate: Sat Apr 2 17:19:41 2022 +0800
[FLINK-27012] Caching maven dependencies to speed up workflows in github
actions
---
.github/workflows/ci.yml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f6ae030..e9acdd3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,6 +31,13 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
+ - name: Cache local Maven repository
+ uses: actions/cache@v3
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Build with Maven
run: |
set -o pipefail; mvn clean install -Pgenerate-docs | tee ./mvn.log;
set +o pipefail
@@ -99,6 +106,13 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
+ - name: Cache local Maven repository
+ uses: actions/cache@v3
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Build with Maven
run: |
set -o pipefail; mvn clean install -DskipTests | tee ./mvn.log; set
+o pipefail