Add runner.arch to cache-key in CI (#866)

This commit is contained in:
Steven B 2024-04-25 13:02:00 +01:00 committed by GitHub
parent 9efcc0d19f
commit 6e55c8d989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ runs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ${{ steps.pipx-env-setup.outputs.pipx-cache-path }} path: ${{ steps.pipx-env-setup.outputs.pipx-cache-path }}
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipx-${{ steps.pipx-env-setup.outputs.pipx-version }}-poetry-${{ inputs.poetry-version }} key: ${{ runner.os }}-${{ runner.arch }}-python-${{ steps.setup-python.outputs.python-version }}-pipx-${{ steps.pipx-env-setup.outputs.pipx-version }}-poetry-${{ inputs.poetry-version }}
- name: Install poetry - name: Install poetry
if: steps.pipx-cache.outputs.cache-hit != 'true' if: steps.pipx-cache.outputs.cache-hit != 'true'
@ -61,7 +61,7 @@ runs:
with: with:
path: | path: |
${{ steps.poetry-cache-location.outputs.poetry-venv-location }} ${{ steps.poetry-cache-location.outputs.poetry-venv-location }}
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-options-${{ inputs.poetry-install-options }} key: ${{ runner.os }}-${{ runner.arch }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-options-${{ inputs.poetry-install-options }}
- name: "Poetry install" - name: "Poetry install"
shell: bash shell: bash
@ -80,4 +80,4 @@ runs:
name: Pre-commit cache name: Pre-commit cache
with: with:
path: ~/.cache/pre-commit/ path: ~/.cache/pre-commit/
key: ${{ runner.os }}-pre-commit-${{ steps.pre-commit-version.outputs.pre-commit-version }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} key: ${{ runner.os }}-${{ runner.arch }}-pre-commit-${{ steps.pre-commit-version.outputs.pre-commit-version }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}