Skip to content

Commit 00471cd

Browse files
committed
ci: caching dependencies
1 parent 99e0349 commit 00471cd

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
@@ -74,6 +74,14 @@ jobs:
7474
7575
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7676

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

174+
- name: Cache Maven repository
175+
uses: actions/cache@v4
176+
with:
177+
path: ~/.m2/repository
178+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
179+
restore-keys: |
180+
${{ runner.os }}-maven-
181+
166182
# Use the CodeBuild image's preinstalled Corretto 8. The image ships it at
167183
# $JAVA_8_HOME but defaults JAVA_HOME to Java 25, so point JAVA_HOME/PATH at
168184
# 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)