From 919d7d0339d7717ad01a307c3d6f0374383910db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Fri, 6 Jan 2023 12:34:08 +0200 Subject: [PATCH] ci-build: cache local maven repo (#2437) --- .github/workflows/maven-ci.yml | 8 ++++++++ .github/workflows/maven-pr-builder.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index 5d3b85bb6..f270d2974 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -54,6 +54,14 @@ jobs: distribution: 'temurin' cache: 'maven' + - 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- + # Cache Sonar packages which as used to run analysis and collect metrics - name: Cache SonarCloud packages uses: actions/cache@v3 diff --git a/.github/workflows/maven-pr-builder.yml b/.github/workflows/maven-pr-builder.yml index 370f7a2bf..0440600a3 100644 --- a/.github/workflows/maven-pr-builder.yml +++ b/.github/workflows/maven-pr-builder.yml @@ -50,6 +50,14 @@ jobs: distribution: 'temurin' cache: 'maven' + - 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- + # Cache Sonar packages which as used to run analysis and collect metrics - name: Cache SonarCloud packages uses: actions/cache@v3