Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: use architecture as part of cache key #36

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs:
uses: actions/cache/restore@v4
with:
path: /usr/local/bin/devbox
key: ${{ runner.os }}-devbox-cli-${{ env.latest_version }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ runner.arch }}-devbox-cli-${{ env.latest_version }}
abbudao marked this conversation as resolved.
Show resolved Hide resolved

- name: Install devbox cli
if: steps.cache-devbox-cli.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -99,7 +99,7 @@ runs:
uses: actions/cache/save@v4
with:
path: /usr/local/bin/devbox
key: ${{ runner.os }}-devbox-cli-${{ env.latest_version }}
key: ${{ runner.os }}-${{ runner.arch }}-devbox-cli-${{ env.latest_version }}

- name: Workaround nix store cache permission issue
if: inputs.enable-cache == 'true'
Expand Down Expand Up @@ -145,7 +145,7 @@ runs:
~/.nix-profile
/nix/store
/nix/var/nix
key: ${{ runner.os }}-devbox-nix-store-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}

- name: Install devbox packages
shell: bash
Expand All @@ -164,7 +164,7 @@ runs:
~/.nix-profile
/nix/store
/nix/var/nix
key: ${{ runner.os }}-devbox-nix-store-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}
key: ${{ runner.os }}-${{ runner.arch }}-devbox-nix-store-${{ hashFiles(format('{0}/devbox.lock', inputs.project-path)) }}

- name: Restore tar command
if: inputs.enable-cache == 'true'
Expand Down