From be6dd712ba6a14b38f5cd609110041564ffca10d Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:48:57 -0400 Subject: [PATCH] Ci: Simplify Cygwin pip cache This might pave the way for caching the Cygwin install, which might speed things up a bit. --- .github/workflows/test-cygwin.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-cygwin.yml b/.github/workflows/test-cygwin.yml index 0874bc01a..70667bce6 100644 --- a/.github/workflows/test-cygwin.yml +++ b/.github/workflows/test-cygwin.yml @@ -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: |