1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-19 19:46:17 +02:00

Support macOS

This commit is contained in:
Kosei Kitahara 2019-11-04 19:30:15 +09:00
parent 315c827b9b
commit 786d2db421
No known key found for this signature in database
GPG key ID: D18883191F02241B

View file

@ -125,9 +125,18 @@ uses: actions/cache@preview
```yaml
- uses: actions/cache@preview
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@preview
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
```