Skip to content

Commit dc9b02f

Browse files
committed
Use actions/cache@v3 to speedup job os-check
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent e1d2d05 commit dc9b02f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/os-check.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ jobs:
2929
profile: minimal
3030
toolchain: stable
3131
- uses: actions/checkout@v2
32+
- name: Create Cargo.lock
33+
uses: actions-rs/cargo@v1
34+
with:
35+
command: update
36+
- uses: actions/cache@v3
37+
with:
38+
path: |
39+
~/.cargo/bin/
40+
~/.cargo/registry/index/
41+
~/.cargo/registry/cache/
42+
~/.cargo/git/db/
43+
target/
44+
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-os-check-v0
3245
- name: cargo test
3346
uses: actions-rs/cargo@v1
3447
with:

0 commit comments

Comments
 (0)