From 95fa7cdda2310f24b0f217c626214c6d3d368ea2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Sep 2026 20:24:09 +0000 Subject: [PATCH] ci: cache maven wrapper distribution to avoid per-build downloads The wrapper jar and Maven distribution zip land under ~/.m2/wrapper, a sibling of ~/.m2/repository -- the existing cache path never reached it, so every build re-fetched apache-maven-3.9.14-bin.zip from Maven Central. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_011d1LPWiNeTmi5johUb4ntn --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ded050a3e..85b537987d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,12 @@ jobs: !~/.m2/repository/io/aklivity/zilla key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Cache Maven wrapper distribution + uses: actions/cache@v6 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-m2-wrapper-${{ hashFiles('**/maven-wrapper.properties') }} + restore-keys: ${{ runner.os }}-m2-wrapper- - name: Cache ZPM test artifacts uses: actions/cache@v6 with: