Skip to content

Commit

Permalink
Cache git dependencies in the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Zabaluev committed Nov 24, 2020
1 parent fa02337 commit 1630dbc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -114,8 +114,10 @@ jobs:
name: Cache cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo/registry/cache
key: cargo-deps-${{ needs.cache_info.outputs.cargo-lock-hash }}
path: |
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-deps-v1-${{ needs.cache_info.outputs.cargo-lock-hash }}

- name: Check out the repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -214,8 +216,10 @@ jobs:
- name: Restore cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo/registry/cache
key: cargo-deps-${{ needs.cache_info.outputs.cargo-lock-hash }}
path: |
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-deps-v1-${{ needs.cache_info.outputs.cargo-lock-hash }}

- name: Create .cargo/config.toml
shell: bash
Expand Down

0 comments on commit 1630dbc

Please sign in to comment.