Skip to content

Commit 9d38346

Browse files
dfa1Copilot
andcommitted
ci: cache Maven repository in GitHub Actions
Cache Maven repo to avoid downloading artifacts each run Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 13148d1 commit 9d38346

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
distribution: zulu
2020
java-version: '25'
2121

22+
- name: Cache Maven repository
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-maven-
29+
2230
- name: Install protobuf compiler
2331
run: sudo apt-get install -y protobuf-compiler
2432

0 commit comments

Comments
 (0)