Skip to content

Commit d7cdcfa

Browse files
committed
ci: caching dependencies
1 parent d9153c0 commit d7cdcfa

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/release-runtime-interface-client.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ jobs:
7575
7676
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7777

78+
- name: Cache Maven repository
79+
uses: actions/cache@v4
80+
with:
81+
path: ~/.m2/repository
82+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
83+
restore-keys: |
84+
${{ runner.os }}-maven-
85+
7886
# Use the CodeBuild image's preinstalled Corretto 8. The image ships it at
7987
# $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at
8088
# 8. Avoids actions/setup-java, which fetches from corretto.github.io +
@@ -164,6 +172,14 @@ jobs:
164172
with:
165173
fetch-depth: 0 # full history for tagging/pushing
166174

175+
- name: Cache Maven repository
176+
uses: actions/cache@v4
177+
with:
178+
path: ~/.m2/repository
179+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
180+
restore-keys: |
181+
${{ runner.os }}-maven-
182+
167183
# Use the CodeBuild image's preinstalled Corretto 8. The image ships it at
168184
# $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at
169185
# 8. Avoids actions/setup-java, which fetches from corretto.github.io +

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ jobs:
8686
with:
8787
fetch-depth: 0 # full history for tagging/pushing
8888

89+
- name: Cache Maven repository
90+
uses: actions/cache@v4
91+
with:
92+
path: ~/.m2/repository
93+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
94+
restore-keys: |
95+
${{ runner.os }}-maven-
96+
8997
# Use the CodeBuild image's preinstalled Corretto 8. The image ships it at
9098
# $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at
9199
# 8. Avoids actions/setup-java, which fetches from corretto.github.io +

0 commit comments

Comments
 (0)