-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
It can be useful to cache multiple directories, for example from different tools like pip and pre-commit.
With Travis CI (ignoring their pip: true shortcut):
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commitThe Actions equivalent requires adding a duplicated step for each directory, something like:
- name: pip cache
uses: actions/cache@preview
with:
path: ~/.cache/pip
key: ${{ matrix.python-version }}-pip
- name: pre-commit cache
uses: actions/cache@preview
with:
path: ~/.cache/pre-commit
key: ${{ matrix.python-version }}-pre-commitPerhaps also allow multiple directories in a single step, something like this?
- name: pip cache
uses: actions/cache@preview
with:
path:
- ~/.cache/pip
- ~/.cache/pre-commit
key: ${{ matrix.python-version }}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request