mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
Add runner.arch to cache-key in CI (#866)
This commit is contained in:
parent
9efcc0d19f
commit
6e55c8d989
6
.github/actions/setup/action.yaml
vendored
6
.github/actions/setup/action.yaml
vendored
@ -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') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user