Skip to content

Commit

Permalink
Experiment with caching the Develocity local cache
Browse files Browse the repository at this point in the history
This can be useful when pushing small iterations to a pull request.

It is limited to pull requests only and only for the Initial JDK build.
We will check if it improves things and the size of the cache.

Related to quarkusio#43559
  • Loading branch information
gsmet committed Sep 30, 2024
1 parent e788d0e commit 287ce49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci-actions-incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ jobs:
restore-keys: |
${{ steps.cache-key.outputs.m2-monthly-branch-cache-key }}-
${{ steps.cache-key.outputs.m2-monthly-cache-key }}-
- name: Cache Develocity local cache
uses: actions/cache@v4
if: github.event_name == 'pull_request'
with:
path: ~/.m2/.develocity/build-cache
key: develocity-cache-Initial JDK 17 Build-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}
restore-keys: |
develocity-cache-Initial JDK 17 Build-${{ github.event.pull_request.number }}-
- name: Populate the cache
run: |
./mvnw -T2C $COMMON_MAVEN_ARGS dependency:go-offline
Expand Down

0 comments on commit 287ce49

Please sign in to comment.