Skip to content

Improve cache usage in CI #7677

@sarutak

Description

@sarutak

Is your feature request related to a problem or challenge?

Currently a GA workflow defined in rust.yml uses actions/cache.
But there are some problems.

  1. Cache is not actually used. See this warning message. This means, the cache is not saves because the path is wrong.
  2. All the caches have the same key. So once a job saves a cache, other jobs fail to save their caches. Restoring a cache by the key will succeed but the contents of the cache might not be what a job want.
  3. Caches are not updated because the key is constant (cargo-cache-).

So I think we have a chance to improve cache usage in CI.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions