mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
CI: Set up cache for Cygwin pip
Copied from the MIT-licensed: https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location
This commit is contained in:
parent
80b8e125bf
commit
97e6197e9f
13
.github/workflows/test-cygwin.yml
vendored
13
.github/workflows/test-cygwin.yml
vendored
|
@ -44,6 +44,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
|
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
|
||||||
|
|
||||||
|
- name: Get pip cache dir
|
||||||
|
id: pip-cache
|
||||||
|
run: |
|
||||||
|
bash.exe -c 'echo "::set-output name=dir::$(pip cache dir)"'
|
||||||
|
|
||||||
|
- name: pip cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
- name: Build system information
|
- name: Build system information
|
||||||
run: |
|
run: |
|
||||||
bash.exe -c "python3 .github/workflows/system-info.py"
|
bash.exe -c "python3 .github/workflows/system-info.py"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user