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

update actions cache and enable key restore #2055

Closed
wants to merge 1 commit into from

Conversation

DaMandal0rian
Copy link
Contributor

@DaMandal0rian DaMandal0rian commented Oct 4, 2023

The PR expands on #2043 and uses key restore based on github docs and fixes paths for windows. It also adds the upgrades the actions package for all jobs.

Code contributor checklist:

@DaMandal0rian DaMandal0rian marked this pull request as ready for review October 4, 2023 17:34
@DaMandal0rian
Copy link
Contributor Author

DaMandal0rian commented Oct 4, 2023

Comment on lines +52 to +53
${{ runner.os == 'Windows' && format('{0}/.cargo/registry', env.USERPROFILE) || '~/.cargo/registry' }}
${{ runner.os == 'Windows' && format('{0}/.cargo/git', env.USERPROFILE) || '~/.cargo/git' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you really sure we need all this mess? I'm suspecting it worked fine the way it was.

key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-${{ env.cache-name }}-
${{ runner.os }}-cargo-
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generic ${{ runner.os }}-cargo- is good, but ${{ runner.os }}-cargo-${{ env.cache-name }}- will not be helpful here since we will never have anything in cache that matches such a key.
Restore keys are only used for matching during retrieval.

Copy link
Contributor Author

@DaMandal0rian DaMandal0rian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closing this PR as it's not needed, the paths are not the problem as powershell can interpret it.

@DaMandal0rian DaMandal0rian deleted the ci-actions-cache branch January 3, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants