diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 024672a..1daece9 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -33,7 +33,7 @@ jobs: startsWith(matrix.python-version, '3') run: | python -c "import sys; print(sys.version.split("" "")[0])" - echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/\")")" + echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/lib/\")")" ls ${{ steps.set-cache.outputs.dir }} - name: Set cache location for Ubuntu (PyPy) if: | @@ -41,7 +41,7 @@ jobs: startsWith(matrix.python-version, 'pypy') run: | python -c "import sys; print(sys.version.split("" "")[0])" - echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/\")")" + echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/lib/\")")" ls ${{ steps.set-cache.outputs.dir }} - name: Set cache location for macOS (Python) if: | @@ -49,7 +49,7 @@ jobs: startsWith(matrix.python-version, '3') run: | python -c "import sys; print(sys.version.split("" "")[0])" - echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/\")")" + echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/lib/\")")" ls ${{ steps.set-cache.outputs.dir }} - name: Set cache location for macOS (PyPy) if: | @@ -57,7 +57,7 @@ jobs: startsWith(matrix.python-version, 'pypy') run: | python -c "import sys; print(sys.version.split("" "")[0])" - echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/\")")" + echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/lib/\")")" ls ${{ steps.set-cache.outputs.dir }} - name: Pip cache uses: actions/cache@v2