rmuir commented on issue #15541:
URL: https://github.com/apache/lucene/issues/15541#issuecomment-3702775009
@dweiss I'll try to find some time to look into the caching too.
often times it is configured wrong, gets trashed by PRs, or invalidates
entirely if a single dep changes.
I use this pattern for other programming languages (example here: python/uv)
at work:
```yaml
# restore exact or inexact cache for pull requests and merge queue. do
not save.
- name: Read-only package cache
if: ${{ contains(fromJSON('["pull_request", "merge_group"]'),
github.event_name) }}
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb #
v5.0.1
with:
path: ~/.cache/uv
key: pypi-${{ github.job }}-${{ inputs.subdirectory }}-${{ runner.os
}}-${{ runner.arch }}-${{ steps.cache-key.outputs.hash }}
restore-keys: pypi-${{ github.job }}-${{ inputs.subdirectory }}-${{
runner.os }}-${{ runner.arch }}-
# save exact cache on the default branch
- name: Read-write package cache
if: ${{ !contains(fromJSON('["pull_request", "merge_group"]'),
github.event_name) }}
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ~/.cache/uv
key: pypi-${{ github.job }}-${{ inputs.subdirectory }}-${{ runner.os
}}-${{ runner.arch }}-${{ steps.cache-key.outputs.hash }}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]