From 89eb7b1073d69e4dc1324f5571852011369145f4 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Wed, 6 Nov 2024 14:58:26 +0100 Subject: [PATCH] CI: fix caching --- .github/workflows/maven.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 15de9cda997a..cb6ba6da6015 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -44,9 +44,8 @@ jobs: - name: Cache Maven packages uses: actions/cache@v4 with: - path: ~/.m2/repository/cached + path: ~/.m2/repository/ key: maven-${{ hashFiles('**/pom.xml') }} - restore-keys: maven- enableCrossOsArchive: true - name: Set up Maven @@ -101,6 +100,13 @@ jobs: with: persist-credentials: false + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository/ + key: maven-${{ hashFiles('**/pom.xml') }} + enableCrossOsArchive: true + - name: Download Maven distribution uses: actions/download-artifact@v4 with: @@ -147,6 +153,13 @@ jobs: with: persist-credentials: false + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository/ + key: maven-${{ hashFiles('**/pom.xml') }} + enableCrossOsArchive: true + - name: Download Maven distribution uses: actions/download-artifact@v4 with: