Ci: Simplify Cygwin pip cache

This might pave the way for caching the Cygwin install, which might speed things up a bit.
This commit is contained in:
DWesl 2022-04-20 20:48:57 -04:00 committed by GitHub
parent bd61d1ef1b
commit be6dd712ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,15 +47,16 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
bash.exe -c 'echo "::set-output name=dir::$(python -m pip cache dir)"'
bash.exe -c 'cygpath -wa $(python -m pip cache dir)'
bash.exe -c 'echo "::set-output name=dir::$(cygpath -wa $(python -m pip cache dir))"'
- name: pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
path: 'C:\cygwin\home\runner\.cache\pip'
key: ${{ runner.os }}-cygwin-pip-${{ hashFiles('.ci/install.sh') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-cygwin-pip-
- name: Build system information
run: |