Skip to content

Commit

Permalink
Cache whole .cargo dir
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Jan 20, 2020
1 parent bf04b34 commit 29c24e7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,13 @@ jobs:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry
- name: Cache cargo index
- name: Cache cargo dir
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index
path: ~/.cargo
key: ${{ runner.os }}-cargo
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Build
Expand All @@ -65,3 +60,8 @@ jobs:
run: cargo test --test integration --features integration
env:
INTEGRATION: ${{ matrix.integration }}
- name: Run cargo-cache --autoclean
run: |
cargo install cargo-cache --debug
find ~/.cargo/bin ! -type d -exec strip {} \;
cargo cache --autoclean

0 comments on commit 29c24e7

Please sign in to comment.