From d4f62362f502b6212df52cbed0fc8dbdc1020174 Mon Sep 17 00:00:00 2001 From: d33bs Date: Tue, 4 Feb 2025 10:53:45 -0700 Subject: [PATCH] ci(cache): use os with version for cache naming --- .github/actions/setup-env/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-env/action.yaml b/.github/actions/setup-env/action.yaml index 6168ba94..34a6cfd9 100644 --- a/.github/actions/setup-env/action.yaml +++ b/.github/actions/setup-env/action.yaml @@ -51,7 +51,7 @@ runs: path: | .cache pre-commit - key: cache|${{ runner.os }}|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} + key: cache|${{ runner.os }}|${{ runner.arch }}|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - name: Cache venv # The cache key for the virtual environment is a hash of the # operating system, PY (see above), the pyproject.toml and @@ -64,7 +64,7 @@ runs: .cache .venv key: - cache|${{ runner.os }}|${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ + cache|${{ runner.os }}|${{ runner.arch }}|${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('poetry.lock') }} - name: Setup poetry and poetry-dynamic-versioning shell: bash