Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit fcb039a

Browse files
author
Athos Couto
committed
Cache rust artifacts
1 parent 8d5390c commit fcb039a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/rust.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
with:
2626
submodules: recursive
2727

28+
- name: Set up cargo cache
29+
uses: actions/cache@v3
30+
continue-on-error: false
31+
with:
32+
path: |
33+
~/.cargo/bin/
34+
~/.cargo/registry/index/
35+
~/.cargo/registry/cache/
36+
~/.cargo/git/db/
37+
target/
38+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39+
restore-keys: ${{ runner.os }}-cargo-
40+
2841
- name: Cargo fmt
2942
uses: actions-rs/cargo@v1
3043
with:
@@ -70,6 +83,20 @@ jobs:
7083
- uses: actions/checkout@v3
7184
with:
7285
submodules: recursive
86+
87+
- name: Set up cargo cache
88+
uses: actions/cache@v3
89+
continue-on-error: false
90+
with:
91+
path: |
92+
~/.cargo/bin/
93+
~/.cargo/registry/index/
94+
~/.cargo/registry/cache/
95+
~/.cargo/git/db/
96+
target/
97+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
98+
restore-keys: ${{ runner.os }}-cargo-
99+
73100
- name: Run tests
74101
uses: actions-rs/cargo@v1
75102
with:

0 commit comments

Comments
 (0)