From e70d55cd93066ab903dbef3dc356516e363b2702 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Fri, 7 Feb 2025 17:32:01 +0800 Subject: [PATCH] fix osx python cache --- .github/actions/setup-tinygrad/action.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/actions/setup-tinygrad/action.yml b/.github/actions/setup-tinygrad/action.yml index 50803cb8a2..9824a513af 100644 --- a/.github/actions/setup-tinygrad/action.yml +++ b/.github/actions/setup-tinygrad/action.yml @@ -44,18 +44,12 @@ runs: # **** Caching packages **** # TODO: key should include input.deps, but it can't since it can't contain commas - - name: Cache Python packages (Linux) - if: inputs.key != '' && runner.os == 'Linux' + - name: Cache Python packages (Linux or macOS) + if: inputs.key != '' && (runner.os == 'Linux' || runner.os == 'macOS') uses: actions/cache@v4 with: path: ${{ env.Python3_ROOT_DIR }}/lib/python${{ inputs.python-version }}/site-packages key: python-package-${{ inputs.key }}-${{ hashFiles('**/setup.py') }} - - name: Cache Python packages (macOS) - if: inputs.key != '' && runner.os == 'macOS' - uses: actions/cache@v4 - with: - path: /Users/runner/Library/Python/${{ inputs.python-version }}/lib/python/site-packages - key: osx-python-package-${{ inputs.key }}-${{ hashFiles('**/setup.py') }} - name: Cache Python packages (Windows) if: inputs.key != '' && runner.os == 'Windows' uses: actions/cache@v4