Skip to content

Commit 3e78057

Browse files
authored
Add caching
1 parent b0a23fb commit 3e78057

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ jobs:
1010
name: CI
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@master
13+
- uses: actions/checkout@v2
14+
- name: Cache cargo
15+
uses: actions/cache@v1
1416
with:
15-
fetch-depth: 50
17+
path: target
18+
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}
19+
restore-key: cargo-build-
1620
- name: Build Blog
1721
run: cargo run
1822
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)