mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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
|
@ -43,6 +43,19 @@ jobs:
|
|||
uses: egor-tensin/cleanup-path@v1
|
||||
with:
|
||||
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
|
||||
run: |
|
||||
|
|
Loading…
Reference in New Issue
Block a user