File tree 5 files changed +45
-0
lines changed
5 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 13
13
name : 📄 Build docs
14
14
runs-on : ubuntu-latest
15
15
steps :
16
+ - uses : actions/cache@v3
17
+ with :
18
+ path : |
19
+ ~/.cargo/bin/
20
+ ~/.cargo/registry/index/
21
+ ~/.cargo/registry/cache/
22
+ ~/.cargo/git/db/
23
+ target/
24
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16
25
- uses : actions/checkout@v2
17
26
- name : Build docs
18
27
run : cargo doc --verbose
Original file line number Diff line number Diff line change 13
13
name : 👔 Check formatting
14
14
runs-on : ubuntu-latest
15
15
steps :
16
+ - uses : actions/cache@v3
17
+ with :
18
+ path : |
19
+ ~/.cargo/bin/
20
+ ~/.cargo/registry/index/
21
+ ~/.cargo/registry/cache/
22
+ ~/.cargo/git/db/
23
+ target/
24
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16
25
- uses : actions/checkout@v2
17
26
- name : Check Formatting
18
27
run : cargo fmt -- --verbose --check --color auto
Original file line number Diff line number Diff line change 13
13
name : 🖋 Check linting
14
14
runs-on : ubuntu-latest
15
15
steps :
16
+ - uses : actions/cache@v3
17
+ with :
18
+ path : |
19
+ ~/.cargo/bin/
20
+ ~/.cargo/registry/index/
21
+ ~/.cargo/registry/cache/
22
+ ~/.cargo/git/db/
23
+ target/
24
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
16
25
- uses : actions/checkout@v2
17
26
- name : Check linting
18
27
run : |
Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v2
17
+ - uses : actions/cache@v3
18
+ with :
19
+ path : |
20
+ ~/.cargo/bin/
21
+ ~/.cargo/registry/index/
22
+ ~/.cargo/registry/cache/
23
+ ~/.cargo/git/db/
24
+ target/
25
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
17
26
- name : Check license
18
27
run : |
19
28
cargo install cargo-deny
Original file line number Diff line number Diff line change 22
22
uses : actions-rs/toolchain@v1
23
23
with :
24
24
toolchain : ${{ matrix.toolchain }}
25
+ - uses : actions/cache@v3
26
+ with :
27
+ path : |
28
+ ~/.cargo/bin/
29
+ ~/.cargo/registry/index/
30
+ ~/.cargo/registry/cache/
31
+ ~/.cargo/git/db/
32
+ target/
33
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25
34
- uses : actions/checkout@v2
26
35
- name : Run tests
27
36
run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments