Cache after build
This commit is contained in:
parent
c8471db60f
commit
8096df58d7
1 changed files with 4 additions and 4 deletions
|
@ -11,15 +11,15 @@ jobs:
|
||||||
keys:
|
keys:
|
||||||
- cargo
|
- cargo
|
||||||
- run: which rustfmt || cargo install rustfmt
|
- run: which rustfmt || cargo install rustfmt
|
||||||
- save_cache:
|
|
||||||
key: cargo
|
|
||||||
paths:
|
|
||||||
- ~/.cargo
|
|
||||||
- run: apt update && apt install -y wget
|
- run: apt update && apt install -y wget
|
||||||
- run: ./scripts/install-deps.sh
|
- run: ./scripts/install-deps.sh
|
||||||
- run: cargo fmt -- --write-mode=diff
|
- run: cargo fmt -- --write-mode=diff
|
||||||
- run: cargo build
|
- run: cargo build
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
|
- save_cache:
|
||||||
|
key: cargo
|
||||||
|
paths:
|
||||||
|
- ~/.cargo
|
||||||
- run: cargo test
|
- run: cargo test
|
||||||
- run: cargo test --release
|
- run: cargo test --release
|
||||||
- run: cd test-files && cargo run --release -- build
|
- run: cd test-files && cargo run --release -- build
|
||||||
|
|
Reference in a new issue