From 9b67be87857acdbeedc0eb4b7351201800613f7c Mon Sep 17 00:00:00 2001 From: Davide Melfi Date: Fri, 21 Aug 2026 16:35:32 +0000 Subject: [PATCH] ci: caching dependencies --- .../release-runtime-interface-client.yml | 16 ++++++++++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/release-runtime-interface-client.yml b/.github/workflows/release-runtime-interface-client.yml index e41dcfc6..1a00b2f3 100644 --- a/.github/workflows/release-runtime-interface-client.yml +++ b/.github/workflows/release-runtime-interface-client.yml @@ -74,6 +74,14 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - name: Cache Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + # Use the CodeBuild image's preinstalled Corretto 8. The image ships it at # $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at # 8. Avoids actions/setup-java, which fetches from corretto.github.io + @@ -163,6 +171,14 @@ jobs: with: fetch-depth: 0 # full history for tagging/pushing + - name: Cache Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + # Use the CodeBuild image's preinstalled Corretto 8. The image ships it at # $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at # 8. Avoids actions/setup-java, which fetches from corretto.github.io + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ff834e5..34c5e60c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,6 +85,14 @@ jobs: with: fetch-depth: 0 # full history for tagging/pushing + - name: Cache Maven repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + # Use the CodeBuild image's preinstalled Corretto 8. The image ships it at # $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at # 8. Avoids actions/setup-java, which fetches from corretto.github.io +