Skip to content

Commit

Permalink
Cache CI cargo build
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Oct 2, 2020
1 parent e8063bf commit 9dd0d8c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache Cargo registry and build artifacts
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', '**.rs') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose --workspace

Expand Down

0 comments on commit 9dd0d8c

Please sign in to comment.