1
0
Fork 0
forked from github/pelican

Update to v2 of cache GitHub Action

This commit is contained in:
Justin Mayer 2021-04-21 09:57:08 +02:00
commit c461def10a

View file

@ -34,16 +34,16 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.config.python }} python-version: ${{ matrix.config.python }}
- name: Set pip cache (Linux) - name: Set up Pip cache (Linux)
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(runner.os, 'Linux') if: startsWith(runner.os, 'Linux')
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
- name: Setup pip cache (macOS) - name: Set up Pip cache (macOS)
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(runner.os, 'macOS') if: startsWith(runner.os, 'macOS')
with: with:
path: ~/Library/Caches/pip path: ~/Library/Caches/pip
@ -51,7 +51,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
- name: Setup pip cache (Windows) - name: Setup pip cache (Windows)
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(runner.os, 'Windows') if: startsWith(runner.os, 'Windows')
with: with:
path: ~\AppData\Local\pip\Cache path: ~\AppData\Local\pip\Cache
@ -88,7 +88,7 @@ jobs:
with: with:
python-version: 3.7 python-version: 3.7
- name: Set pip cache (Linux) - name: Set pip cache (Linux)
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(runner.os, 'Linux') if: startsWith(runner.os, 'Linux')
with: with:
path: ~/.cache/pip path: ~/.cache/pip
@ -112,7 +112,7 @@ jobs:
with: with:
python-version: 3.7 python-version: 3.7
- name: Set pip cache (Linux) - name: Set pip cache (Linux)
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(runner.os, 'Linux') if: startsWith(runner.os, 'Linux')
with: with:
path: ~/.cache/pip path: ~/.cache/pip