Instead of manual cache setup, consider a rust-specific action like https://github.com/Swatinem/rust-cache. What do other crates do for caching?
|
# Cache based on OS/compiler. |
|
- name: Extract cache |
|
uses: actions/cache@v3 |
|
with: |
|
path: | |
|
~/.cargo |
|
!~/.cargo/registry/index |
|
!~/.cargo/git/checkouts |
|
target |
|
!target/tests |
|
!target/examples |
|
key: ${{ runner.os }}-${{ steps.install-rust.outputs.cachekey }} |
Instead of manual cache setup, consider a rust-specific action like https://github.com/Swatinem/rust-cache. What do other crates do for caching?
uom/.github/workflows/ci-full-test-suite.yml
Lines 19 to 30 in d4f08de