Skip to content

Commit 5994c18

Browse files
committed
better cache
1 parent 7496180 commit 5994c18

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
uses: actions/cache@v1
3939
id: cache
4040
with:
41-
path: ~/.cargo
41+
path: |
42+
~/.cargo
43+
target
4244
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4345
- name: Test twitch_oauth2
4446
uses: actions-rs/cargo@v1
@@ -77,7 +79,9 @@ jobs:
7779
uses: actions/cache@v1
7880
id: cache
7981
with:
80-
path: ~/.cargo
82+
path: |
83+
~/.cargo
84+
target
8185
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
8286
- name: Run clippy --all-targets --all-features -- -D warnings
8387
uses: actions-rs/cargo@v1
@@ -98,7 +102,9 @@ jobs:
98102
uses: actions/cache@v1
99103
id: cache
100104
with:
101-
path: ~/.cargo
105+
path: |
106+
~/.cargo
107+
target
102108
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
103109
# We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
104110
- name: Run doc tests

0 commit comments

Comments
 (0)