Skip to content

Commit ced29b5

Browse files
committed
ci: add caching of cargo artifacts.
Lifted from the actions/cache docs[0]. [0]: https://github.com/actions/cache/blob/main/examples.md#rust---cargo
1 parent 4795453 commit ced29b5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,17 @@ jobs:
115115
files: ./lcov.info
116116
fail_ci_if_error: false
117117
verbose: true
118+
119+
cache:
120+
name: Update cache
121+
runs-on: ubuntu-latest
122+
steps:
123+
- uses: actions/cache@v3
124+
with:
125+
path: |
126+
~/.cargo/bin/
127+
~/.cargo/registry/index/
128+
~/.cargo/registry/cache/
129+
~/.cargo/git/db/
130+
target/
131+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

0 commit comments

Comments
 (0)