Cache after build

This commit is contained in:
Jake Howard 2017-08-15 22:49:27 +01:00
parent c8471db60f
commit 8096df58d7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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