Skip to content

Cache crates.io index for CI #23

@wildwestrom

Description

@wildwestrom

I decided personally it was a good idea to cache the crates.io index.

Do you think it's a good idea to do this for the template?

  • A disadvantage is that the index (which is about 300MB) is now stored on Github's servers.
  • An advantage is now the action doesn't have to fetch the entire crates.io index every time, which takes too long for my impatient self.

Example:

            - uses: actions/cache@v3
              with:
                path: |
                    ~/.cargo/registry/index/
                key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions