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

Improve cargo example #1248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fishrock123
Copy link

Adds restore-keys for cargo - this helps improve build times by allowing the cache to be mostly pre-populated when deps are updated.

Adds two missing cache files.

Adds a build type parameter to the cache keys to account for different build profiles / targets.

Description

Example improvement for use with cargo.

Motivation and Context

  • Not all desired cache files were included
  • Restoring the cache when deps change is very beneficial
  • Easy build target parameter is very useful when using the cache for different build targets (very common to build debug for a tests job and release for some kind of publish job).

How Has This Been Tested?

It's docs

Screenshots (if appropriate):

Types of changes

  • Documentation (add or update README or docs)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

Adds `restore-keys` for cargo - this helps improve build times by allowing the cache to be mostly pre-populated when deps are updated.

Adds two missing cache files.

Adds a build type parameter to the cache keys to account for different build profiles / targets.
@Fishrock123 Fishrock123 requested a review from a team as a code owner September 25, 2023 21:26
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.

1 participant