You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2021/12/02 19:32:08 UTC

[plc4x] 02/02: fix(ci): cache maven .m2 for actions to speed up builds

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit ff3176edb8d2aad7d84c40a7dacbb592a0b8e527
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Dec 2 20:31:56 2021 +0100

    fix(ci): cache maven .m2 for actions to speed up builds
---
 .github/workflows/ensure-platforms.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/ensure-platforms.yml b/.github/workflows/ensure-platforms.yml
index aacf861..0ee5ebc 100644
--- a/.github/workflows/ensure-platforms.yml
+++ b/.github/workflows/ensure-platforms.yml
@@ -40,6 +40,14 @@ jobs:
           java-package: jdk
           java-version: ${{ matrix.java }}
 
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+
       - name: Calculate platform suffix
         id: platform_suffix
         uses: actions/github-script@v5.0.0