Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add runner.arch into cache key for bats #17

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ runs:
with:
path: |
~/.local/share/bats
key: ${{ runner.os }}-bats-${{ inputs.bats-version }}
key: ${{ runner.os }}-${{ runner.arch }}-bats-${{ inputs.bats-version }}

- name: "Set PATH in case of cache-hit"
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -155,7 +155,7 @@ runs:
id: support-cache
with:
path: ${{ inputs.support-path }}
key: ${{ runner.os }}-bats-support-${{ inputs.support-version }}
key: ${{ runner.os }}-${{ runner.arch }}-bats-support-${{ inputs.support-version }}

- name: "Download and install Bats-support"
if: inputs.support-install == 'true' && steps.support-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -188,7 +188,7 @@ runs:
id: assert-cache
with:
path: ${{ inputs.assert-path }}
key: ${{ runner.os }}-bats-assert-${{ inputs.assert-version }}
key: ${{ runner.os }}-${{ runner.arch }}-bats-assert-${{ inputs.assert-version }}

- name: "Download and install Bats-assert"
if: inputs.assert-install == 'true' && steps.assert-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -221,7 +221,7 @@ runs:
id: detik-cache
with:
path: ${{ inputs.detik-path }}
key: ${{ runner.os }}-bats-detik-${{ inputs.detik-version }}
key: ${{ runner.os }}-${{ runner.arch }}-bats-detik-${{ inputs.detik-version }}

- name: "Download and install Bats-detik"
if: inputs.detik-install == 'true' && steps.detik-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -253,7 +253,7 @@ runs:
id: file-cache
with:
path: ${{ inputs.file-path }}
key: ${{ runner.os }}-bats-file-${{ inputs.file-version }}
key: ${{ runner.os }}-${{ runner.arch }}-bats-file-${{ inputs.file-version }}

- name: "Download and install Bats-file"
if: inputs.file-install == 'true' && steps.file-cache.outputs.cache-hit != 'true'
Expand Down
Loading