Skip to content

Commit f6330cc

Browse files
authored
Merge add build cache
2 parents 2c699b1 + d10456e commit f6330cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/rust-unit.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@ env:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
1516
steps:
1617
- uses: actions/checkout@v2
1718
with:
1819
submodules: true
1920

21+
- name: Cache
22+
uses: actions/cache@v3
23+
with:
24+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-cargo-
27+
path: |
28+
~/.cargo/bin/
29+
~/.cargo/registry/
30+
~/.cargo/git/db/
31+
target/
32+
2033
- name: Build
2134
run: cargo build --verbose --workspace
2235
- name: Run tests

0 commit comments

Comments
 (0)