Skip to content

Commit

Permalink
ci(cache): use os with version for cache naming (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs authored Feb 25, 2025
1 parent bf375ba commit 4783982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4783982

Please sign in to comment.