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:
DWesl 2022-04-20 10:17:45 -04:00 committed by GitHub
parent 80b8e125bf
commit 97e6197e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"